Files
python-cinderclient/cinderclient/v3
Brian Rosmaita 9df653571d Handle downgraded client for snapshot-create
When a CLI user specifies --os-volume api-version 3.66, the shell
will execute the appropriate shell code, but if the server only
supports < 3.66, the client is automatically downgraded and correctly
uses the pre-3.66 SnapshotManager.create() method.

In that case, the 'force' parameter, which is technically not allowed
in mv 3.66 (but which silently accepts a True value for backward
compatibility), will have a value of None, which the pre-3.66 code
happily passes to cinder as '"force": null' in the request body, and
which then fails the Block Storage API request-schema check.

Handle this situation by detecting a None 'force' value and setting
it to its pre-3.66 default value of False.

Change-Id: I3ad8283c2a9aaac58c8d2b50fa7ac86b617e5dd3
Closes-bug: #1995883
2022-11-08 18:48:18 -05:00
..
2021-07-14 14:28:44 -04:00
2016-12-20 16:29:36 +02:00
2021-07-14 14:28:44 -04:00
2021-07-14 14:28:44 -04:00
2021-07-14 14:28:44 -04:00
2021-03-04 16:03:35 +08:00
2021-03-04 16:03:35 +08:00
2021-07-14 14:28:44 -04:00
2021-03-10 15:04:27 -05:00
2021-07-14 14:28:44 -04:00
2021-07-14 14:28:44 -04:00
2021-07-14 14:28:44 -04:00
2021-07-14 14:28:44 -04:00
2017-08-01 16:23:49 -04:00
2021-07-14 14:28:44 -04:00
2021-07-14 14:28:44 -04:00
2021-07-14 14:28:44 -04:00
2021-07-14 14:28:44 -04:00
2021-07-14 14:28:44 -04:00
2021-07-14 14:28:44 -04:00
2021-07-14 14:28:44 -04:00
2022-02-24 23:13:19 +05:30