]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw.py: check for empty client config
authorJoe Buck <jbbuck@gmail.com>
Thu, 1 Aug 2013 17:07:56 +0000 (10:07 -0700)
committerJoe Buck <jbbuck@gmail.com>
Thu, 1 Aug 2013 17:28:26 +0000 (10:28 -0700)
Fixes a bug where an rgw client without
a system user specified would cause teuthology
to error out.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
teuthology/task/rgw.py

index 429fcf4ae247542dcadd5e4af31eeb85f4b30bc1..a87cdd6df2628afc70949a31537c5548ac0af60d 100644 (file)
@@ -320,6 +320,8 @@ def configure_users(ctx, config):
 
     # extract the user info and append it to the payload tuple for the given client
     for client, c_config in config.iteritems():
+        if not c_config:
+            continue
         user_info = extract_user_info(c_config)
         log.debug('Creating user {user} on {client}'.format(
                   user=user_info['system_key']['user'],client=client))