diff --git a/glanceclient/v1/shell.py b/glanceclient/v1/shell.py index da3b6dc1..ceb19188 100644 --- a/glanceclient/v1/shell.py +++ b/glanceclient/v1/shell.py @@ -113,6 +113,9 @@ def do_image_create(gc, args): fields['is_public'] = fields.pop('public') + if 'is_protected' in fields: + fields['protected'] = fields.pop('is_protected') + raw_properties = fields.pop('property') fields['properties'] = {} for datum in raw_properties: @@ -180,6 +183,9 @@ def do_image_update(gc, args): image_id = fields.pop('id') + if 'is_protected' in fields: + fields['protected'] = fields.pop('is_protected') + raw_properties = fields.pop('property') fields['properties'] = {} for datum in raw_properties: