diff options
| author | Eduardo Santos <eduardo.experimental@gmail.com> | 2020-10-23 14:17:23 +0000 |
|---|---|---|
| committer | Eduardo Santos <eduardo.experimental@gmail.com> | 2020-10-29 15:09:26 +0000 |
| commit | d92f15a09e59942bb60b7ef3a81c1e21dc16b578 (patch) | |
| tree | c641dfde710cdf18d5137383f18508cb6c55a6d5 /releasenotes | |
| parent | 1e7c24a9c4c8547e4ee3c92f4cb044a4405a5b7c (diff) | |
| download | python-cinderclient-d92f15a09e59942bb60b7ef3a81c1e21dc16b578.tar.gz | |
Fix undesirable raw Python error
Using the cinderclient without a subcommand while
passing an optional argument triggers the raw Python
error `ERROR: 'Namespace' object has no attribute
'func'`. This bug can be reproduced by issuing the
command `cinder --os-volume-api-version 3.40`.
Added a default value to `func` and an empty value to
`command` as placeholders so that a help message is
shown instead of the Python error.
Change-Id: Idb51e8635b97f0da2976f3268d5e19100ec77203
Closes-Bug: #1867061
Diffstat (limited to 'releasenotes')
| -rw-r--r-- | releasenotes/notes/bug-1867061-fix-py-raw-error-msg-ff3c6da0b01d5d6c.yaml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/releasenotes/notes/bug-1867061-fix-py-raw-error-msg-ff3c6da0b01d5d6c.yaml b/releasenotes/notes/bug-1867061-fix-py-raw-error-msg-ff3c6da0b01d5d6c.yaml new file mode 100644 index 0000000..91d026b --- /dev/null +++ b/releasenotes/notes/bug-1867061-fix-py-raw-error-msg-ff3c6da0b01d5d6c.yaml @@ -0,0 +1,7 @@ +--- +fixes: + - | + `Bug #1867061 <https://bugs.launchpad.net/python-cinderclient/+bug/1867061>`_: + Fixed raw Python error message when using ``cinder`` without + a subcommand while passing an optional argument, such as + ``--os-volume-api-version``.
\ No newline at end of file |
