From: Joe Buck Date: Thu, 1 Aug 2013 17:07:56 +0000 (-0700) Subject: rgw.py: check for empty client config X-Git-Tag: 1.1.0~2010 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=1552a4b97aaed489ef8d062dc49e866b6711cf76;p=teuthology.git rgw.py: check for empty client config Fixes a bug where an rgw client without a system user specified would cause teuthology to error out. Signed-off-by: Joe Buck Reviewed-by: Yehuda Sadeh --- diff --git a/teuthology/task/rgw.py b/teuthology/task/rgw.py index 429fcf4ae2..a87cdd6df2 100644 --- a/teuthology/task/rgw.py +++ b/teuthology/task/rgw.py @@ -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))