Merge "Fix undesirable raw Python error"

This commit is contained in:
Zuul 2020-11-16 18:35:05 +00:00 committed by Gerrit Code Review
commit e15d29fe9f
2 changed files with 10 additions and 0 deletions

View File

@ -347,6 +347,9 @@ class OpenStackManilaShell(object):
parser.add_argument('--os_cert',
help=argparse.SUPPRESS)
parser.set_defaults(func=self.do_help)
parser.set_defaults(command='')
return parser
def get_subcommand_parser(self, version):

View File

@ -0,0 +1,7 @@
---
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``.