mirror of
https://github.com/ceph/ceph
synced 2024-12-18 01:16:55 +00:00
rbd: fix typo in default config
pyflakes would have caught this if 'all' weren't a built-in function
This commit is contained in:
parent
397e7f2f7b
commit
e30b7710f5
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user