summaryrefslogtreecommitdiff
path: root/doc/source/cli/command-objects/module.rst
diff options
context:
space:
mode:
authorwhoami-rajat <rajatdhasmana@gmail.com>2022-06-01 14:51:29 +0530
committerCyril Roelandt <cyril@redhat.com>2022-07-01 18:05:41 +0200
commit849e7e93f83a220265d11af71e2edc009c3f7bea (patch)
tree368fe4f3d3a5f2bb53447a47ef763594dc3cf158 /doc/source/cli/command-objects/module.rst
parent97c81cf61f6ab32c93e3de02b91b1e69acada396 (diff)
downloadpython-openstackclient-849e7e93f83a220265d11af71e2edc009c3f7bea.tar.gz
Fix: create image from volume command
Currently the command ``openstack image create --volume`` calls cinderclient to upload the volume to image service (glance) but OSC passes ``visibility`` and ``protected`` fields which are only available in microversion 3.1 or greater. This generates an error if the user is using volume microversion < 3.1 and wants to create an image from volume. This patch fixes that by only passing ``visibility`` and ``protected`` fields when the volume microversion is 3.1 or greater and fail otherwise i.e. the following 3 cases: 1) visibility/protected argument + mv >= 3.1 = pass 2) visibility/protected argument + mv < 3.1 = fail 3) not visibility/protected argument + any mv = pass Story: 2010060 Task: 45511 Change-Id: I568a0ea0af8f7f82b16d49a6a1bb0391b99c50dc (cherry picked from commit 9eea28ba59e44526b9d6f1ad9f80c3553d5853e2) Conflicts: openstackclient/image/v2/image.py
Diffstat (limited to 'doc/source/cli/command-objects/module.rst')
0 files changed, 0 insertions, 0 deletions