From 1552a4b97aaed489ef8d062dc49e866b6711cf76 Mon Sep 17 00:00:00 2001 From: Joe Buck Date: Thu, 1 Aug 2013 10:07:56 -0700 Subject: [PATCH] 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 --- teuthology/task/rgw.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/teuthology/task/rgw.py b/teuthology/task/rgw.py index 429fcf4ae2475..a87cdd6df2628 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)) -- 2.39.5