From 97cc6c2990a2330fa2c7b2fa63a7b23b1d091c23 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Thu, 15 Dec 2011 12:39:39 -0800 Subject: [PATCH] readwrite: fix task with default conf --- teuthology/task/s3readwrite.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/teuthology/task/s3readwrite.py b/teuthology/task/s3readwrite.py index a009d5cb73..14a8977f73 100644 --- a/teuthology/task/s3readwrite.py +++ b/teuthology/task/s3readwrite.py @@ -221,7 +221,11 @@ def task(ctx, config): s3tests_conf = {} for client in clients: - print 'client={client} config[client]={conf}'.format(client=client, conf=config[client]) + if config[client] is None: + config[client] = {} + config[client].setdefault('s3', {}) + config[client].setdefault('readwrite', {}) + s3tests_conf[client] = ({ 'DEFAULT': { @@ -231,7 +235,6 @@ def task(ctx, config): 'readwrite' : config[client]['readwrite'], 's3' : config[client]['s3'], }) - print 's3tests_conf[client]={s}'.format(s=s3tests_conf[client]) with contextutil.nested( lambda: download(ctx=ctx, config=clients), -- 2.39.5