summaryrefslogtreecommitdiff
path: root/releasenotes
diff options
context:
space:
mode:
authorTakashi Natsume <takanattie@gmail.com>2021-01-04 13:39:38 +0900
committerTakashi Natsume <takanattie@gmail.com>2021-01-04 13:49:20 +0900
commite85d845b1aa5a18537907ba561a2718db2ccbed8 (patch)
tree901b3a08a0429d53c33154f2015ed63ae3b28b65 /releasenotes
parent1b5f29a3a4cead30c6455d9ecc47850f5e4994e1 (diff)
downloadpython-novaclient-e85d845b1aa5a18537907ba561a2718db2ccbed8.tar.gz
Fix undesirable raw Python error
Using the novaclient 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 `nova --os-compute-api-version 2.87`. 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: Ic3e87b67f6d27d40b03d7d8e520fa0f79a4d09e5 Closes-Bug: #1903727 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
Diffstat (limited to 'releasenotes')
-rw-r--r--releasenotes/notes/fix-raw-python-error-debd3edb17c2f675.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/releasenotes/notes/fix-raw-python-error-debd3edb17c2f675.yaml b/releasenotes/notes/fix-raw-python-error-debd3edb17c2f675.yaml
new file mode 100644
index 00000000..7686ecbe
--- /dev/null
+++ b/releasenotes/notes/fix-raw-python-error-debd3edb17c2f675.yaml
@@ -0,0 +1,7 @@
+---
+fixes:
+ - |
+ `Bug #1903727 <https://bugs.launchpad.net/python-novaclient/+bug/1903727>`_:
+ Fixed raw Python error message when using ``nova`` without
+ a subcommand while passing an optional argument, such as
+ ``--os-compute-api-version 2.87``.