cinder/releasenotes/notes/fix-manage-no-action-46b023476e8cd938.yaml
Gorka Eguileor fdc3711c95 Fix cinder-manage <category> traceback
Running the cinder-manage command with a category but without an action
will throw a Traceback saying "oslo_config.cfg.NoSuchOptError: no such
option action_fn in group [DEFAULT]"

Example command that triggers this: cinder-manage backup

This patch fixes this by simulating that the user had used the --help
action while still exitting with an error (after all the call was
missing arguments).

New output:

  $ cinder-manage backup

  usage: cinder-manage backup [-h] {list,update_backup_host} ...

  positional arguments:
    {list,update_backup_host}

    optional arguments:
      -h, --help            show this help message and exit

Closes-Bug: #1902852
Change-Id: I6fca54d95b41d189545789c775e23223abb37c1b
2020-11-04 11:36:57 +01:00

8 lines
228 B
YAML

---
fixes:
- |
`Bug #1902852
<https://bugs.launchpad.net/python-cinderclient/+bug/1902852>`_:
Fixed throwing Python traceback message when using ``cinder-manage
<category>`` without an action for the category.