Enhance help message of upload_to_image
Following the commit fb2c434c2461a25193067104de766fc1142a6024 in the cinder repo the --force option to upload-to-image is ignored by default. To enable it the config option enable_force_upload must be set to true. The help text for upload-to-image in the python cinderclient should remind user that --force may not work in some cloud now. Closes-Bug: #1611667 Change-Id: Ib56fb2016d933a9bbbcb0185c50e33d2166b34e6
This commit is contained in:
@@ -79,7 +79,8 @@ def _print_volume_image(image):
|
|||||||
default=False,
|
default=False,
|
||||||
help='Enables or disables upload of '
|
help='Enables or disables upload of '
|
||||||
'a volume that is attached to an instance. '
|
'a volume that is attached to an instance. '
|
||||||
'Default=False.')
|
'Default=False. '
|
||||||
|
'This option may not be supported by your cloud.')
|
||||||
@utils.arg('--container-format',
|
@utils.arg('--container-format',
|
||||||
metavar='<container-format>',
|
metavar='<container-format>',
|
||||||
default='bare',
|
default='bare',
|
||||||
|
@@ -1402,7 +1402,8 @@ def _find_group_type(cs, gtype):
|
|||||||
default=False,
|
default=False,
|
||||||
help='Enables or disables upload of '
|
help='Enables or disables upload of '
|
||||||
'a volume that is attached to an instance. '
|
'a volume that is attached to an instance. '
|
||||||
'Default=False.')
|
'Default=False. '
|
||||||
|
'This option may not be supported by your cloud.')
|
||||||
@utils.arg('--container-format',
|
@utils.arg('--container-format',
|
||||||
metavar='<container-format>',
|
metavar='<container-format>',
|
||||||
default='bare',
|
default='bare',
|
||||||
|
Reference in New Issue
Block a user