]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
s3tests: fix client configurations that aren't dictionaries
authorJosh Durgin <josh.durgin@inktank.com>
Wed, 10 Jul 2013 01:50:52 +0000 (18:50 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Wed, 10 Jul 2013 01:51:03 +0000 (18:51 -0700)
They're always used as dictionaries later on.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
s3tests.py

index abac99ede1cb8d9c483d1acba9513cb2c5bf8487..700baeefebe94a8b41f2456ab39230058ef172ec 100644 (file)
@@ -219,8 +219,10 @@ def task(ctx, config):
 
     overrides = ctx.config.get('overrides', {})
     # merge each client section, not the top level.
-    for (client, cconf) in config.iteritems():
-        teuthology.deep_merge(cconf, overrides.get('s3tests', {}))
+    for client in config.iterkeys():
+        if not config[client]:
+            config[client] = {}
+        teuthology.deep_merge(config[client], overrides.get('s3tests', {}))
 
     log.debug('config is %s', config)