Merge "Translate is_protected to protected"
This commit is contained in:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user