If no image has been provided in the "deploy from" json do not set
ctx.image to it (empty-string or None) as we may have had a valid
value passed on the --image CLI option.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
similar to how cli options on `deploy` are bound to the context.
"""
ctx.name = config_data['name']
- if 'image' in config_data:
- ctx.image = config_data['image']
+ image = config_data.get('image', '')
+ if image:
+ ctx.image = image
if 'fsid' in config_data:
ctx.fsid = config_data['fsid']
if 'meta' in config_data: