mirror of
https://opendev.org/openstack/python-openstackclient.git
synced 2026-01-17 07:20:45 +00:00
openstack image create: honor protection/visibility flags
The --protected, --unprotected, --public, --shared, --community, --private flags were ignored when using --volume. Change-Id: Id5c05ef7d7bb0a04b9d7a9d821e544e1ff7b3d28 Story: 2008882
This commit is contained in:
parent
6bdf030953
commit
3918622968
1 changed files with 2 additions and 0 deletions
|
|
@ -490,6 +490,8 @@ class CreateImage(command.ShowOne):
|
|||
parsed_args.name,
|
||||
parsed_args.container_format,
|
||||
parsed_args.disk_format,
|
||||
visibility=kwargs.get('visibility', 'private'),
|
||||
protected=True if parsed_args.protected else False
|
||||
)
|
||||
info = body['os-volume_upload_image']
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue