From e30b7710f5acec49b510cda980000858eb0321eb Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Mon, 26 Mar 2012 11:54:49 -0700 Subject: [PATCH] rbd: fix typo in default config pyflakes would have caught this if 'all' weren't a built-in function --- teuthology/task/rbd.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/teuthology/task/rbd.py b/teuthology/task/rbd.py index b7c211f553d01..22a785e13e9dd 100644 --- a/teuthology/task/rbd.py +++ b/teuthology/task/rbd.py @@ -379,7 +379,7 @@ def task(ctx, config): fs_type: xfs """ if config is None: - config = { all: None } + config = { 'all': None } norm_config = config if isinstance(config, dict): norm_config = teuthology.replace_all_with_clients(ctx.cluster, config) @@ -392,6 +392,8 @@ def task(ctx, config): else: role_images = norm_config + log.debug('rbd config is: %s', norm_config) + with contextutil.nested( lambda: create_image(ctx=ctx, config=norm_config), lambda: modprobe(ctx=ctx, config=norm_config), -- 2.39.5