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.
Reviewed: https:/ /review. opendev. org/c/openstack /python- glanceclient/ +/803326 /opendev. org/openstack/ python- glanceclient/ commit/ 1eb0bbbed7c5ce1 2aee5f26be7a7ae c51ae9ef55
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 1eb0bbbed7c5ce1 2aee5f26be7a7ae c51ae9ef55
Author: Mridula Joshi <email address hidden>
Date: Tue Aug 3 10:35:40 2021 +0000
Fix undesirable raw Python error
Using the glanceclient without a subcommand while api-version 2`.
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-
Added a default value to `func` as placeholder
so that a help message is shown instead of the Python error.
Closes-Bug: #1903727 2310cbbc240bd17 79b265a64fd
Change-Id: Ie4288262e40819