python-manilaclient/releasenotes/notes/bug-1902873-fix-py-raw-error-msg-a839fee2ac7b9d3d.yaml
Eduardo Santos aeb47213ea Fix undesirable raw Python error
Using the manilaclient 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 `manila --os-cache`.
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.
This patch uses the same fix implemented in the
python-cinderclient.

Closes-Bug: #1902873
Change-Id: I5fcafd4bdfb40b2054e1205c14493c2f4be1f77a
2020-11-06 11:55:44 +00:00

8 lines
246 B
YAML

---
fixes:
- |
`Bug #1902873 <https://bugs.launchpad.net/python-manilaclient/+bug/1902873>`_:
Fixed raw Python error message when using ``manila`` without
a subcommand while passing an optional argument, such as
``--os-cache``.