Skip to content

Commit 6776cec

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "openstack image create: honor protection/visibility flags"
2 parents 2c89812 + 3918622 commit 6776cec

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

openstackclient/image/v2/image.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,8 @@ def take_action(self, parsed_args):
490490
parsed_args.name,
491491
parsed_args.container_format,
492492
parsed_args.disk_format,
493+
visibility=kwargs.get('visibility', 'private'),
494+
protected=True if parsed_args.protected else False
493495
)
494496
info = body['os-volume_upload_image']
495497
try:

0 commit comments

Comments
 (0)