diff options
| author | Cyril Roelandt <cyril@redhat.com> | 2021-05-05 01:26:51 +0200 |
|---|---|---|
| committer | Cyril Roelandt <cyril@redhat.com> | 2021-05-05 01:26:51 +0200 |
| commit | 3918622968073738e8fa17eec8bf5512ed609af9 (patch) | |
| tree | 779a9ac57fe8d1d9f36a3f683e86fb1d68000fc0 /openstackclient | |
| parent | 6bdf030953d449693c97bff8812b7ced981a2015 (diff) | |
| download | python-openstackclient-3918622968073738e8fa17eec8bf5512ed609af9.tar.gz | |
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
Diffstat (limited to 'openstackclient')
| -rw-r--r-- | openstackclient/image/v2/image.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openstackclient/image/v2/image.py b/openstackclient/image/v2/image.py index 644fbbb4..c1f46d2d 100644 --- a/openstackclient/image/v2/image.py +++ b/openstackclient/image/v2/image.py @@ -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: |
