python-openstackclient/openstackclient
Stephen Finucane 12f1e56ebf Add 'openstack server create --use-config-drive'
Despite what the help text for this options says, the nova API only
accepts boolean values for this value and has done so since at least the
introduction of the 2.1 microversioned API. While it would be nice to
convert '--config-drive' to a boolean flag, we'd need to be able to
retain temporary support for people passing arguments. 'nargs=?' [1]
looks promising but it has an annoying tendency to swallow a positional
argument following it [2]. Since that is not an option, we have to live
with a new config option, '--use-config-drive' and a '--no-config-drive'
counterpart.

[1] https://docs.python.org/3/library/argparse.html#nargs
[2] https://bugs.python.org/issue9338

Change-Id: If9cce0ad4094cc9cef1c9136b80c3b0f35a82c7a
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Story: #2005468
Task: #30547
2020-07-22 10:59:07 +01:00
..
api Merge "Make container list --all work" 2020-06-09 00:21:52 +00:00
common Fix compatibility issue in 5.3 2020-07-14 08:06:55 -05:00
compute Add 'openstack server create --use-config-drive' 2020-07-22 10:59:07 +01:00
identity Client should parse string to boolean for value 'is_domain' 2020-05-29 07:53:13 -05:00
image Merge "Fix uploading an signed image does not work if private signing key is encrypted" 2020-07-08 17:30:38 +00:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2018-03-01 07:25:50 +00:00
network Merge "port: add --host to list command" 2020-06-26 01:13:35 +00:00
object Add storage policy option to create container command 2020-02-19 10:08:48 +13:00
tests Add 'openstack server create --use-config-drive' 2020-07-22 10:59:07 +01:00
volume Merge "Switch image to use SDK" 2020-03-25 15:19:20 +00:00
__init__.py Clean up W503 and E402 pep8 errors 2018-04-15 12:23:06 +09:00
i18n.py Remove log translations 2017-03-21 17:23:09 +08:00
shell.py Remove redundant OpenStackShell.prepare_to_run_command 2019-10-31 16:53:30 +00:00