summaryrefslogtreecommitdiff
path: root/releasenotes
diff options
context:
space:
mode:
authorMridula Joshi <mrjoshi@redhat.com>2021-08-03 10:35:40 +0000
committerMridula Joshi <mrjoshi@redhat.com>2021-08-03 10:35:40 +0000
commit1eb0bbbed7c5ce12aee5f26be7a7aec51ae9ef55 (patch)
tree6e3f7ada696fb278eb1a173017029dd95e4a2845 /releasenotes
parentcb084f5289c5c23bdb9fabb413a81b32acb5a498 (diff)
downloadpython-glanceclient-1eb0bbbed7c5ce12aee5f26be7a7aec51ae9ef55.tar.gz
Fix undesirable raw Python error
Using the glanceclient 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 `glance --os-image-api-version 2`. Added a default value to `func` as placeholder so that a help message is shown instead of the Python error. Closes-Bug: #1903727 Change-Id: Ie4288262e408192310cbbc240bd1779b265a64fd
Diffstat (limited to 'releasenotes')
-rw-r--r--releasenotes/notes/fix-undesirable-raw-python-error-66e3ddaca7b72ae2.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/releasenotes/notes/fix-undesirable-raw-python-error-66e3ddaca7b72ae2.yaml b/releasenotes/notes/fix-undesirable-raw-python-error-66e3ddaca7b72ae2.yaml
new file mode 100644
index 0000000..d6fad7d
--- /dev/null
+++ b/releasenotes/notes/fix-undesirable-raw-python-error-66e3ddaca7b72ae2.yaml
@@ -0,0 +1,7 @@
+---
+fixes:
+ - |
+ `Bug #1903727 <https://bugs.launchpad.net/python-glanceclient/+bug/1903727>`_:
+ Fixed raw Python error message when using ``glance`` without
+ a subcommand while passing an optional argument, such as
+ ``--os-image-api-version``.