python-openstackclient/releasenotes/notes/story-2005468-server-use-config-drive-9fc68552365cfefa.yaml
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

9 lines
374 B
YAML

---
deprecations:
- |
The ``--config-drive`` option on the ``openstack server create`` command
has been deprecated in favour of the ``--use-config-drive`` and
``--no-config-drive`` arguments. The ``--config-drive`` option expected
either a string or bool-like argument, but the nova API has only supported
boolean values since API v2.1 was introduced.