Handle rbd config with no properties.

This commit is contained in:
Josh Durgin 2011-06-22 17:34:08 -07:00
parent 122ed28638
commit 9eea6b9325

View File

@ -355,6 +355,8 @@ def task(ctx, config):
if isinstance(config, dict):
role_images = {}
for role, properties in config.iteritems():
if properties is None:
properties = {}
role_images[role] = properties.get('image_name')
else:
role_images = config