diff options
| author | TerryHowe <terrylhowe@gmail.com> | 2015-08-18 10:09:46 -0600 |
|---|---|---|
| committer | Terry Howe <terrylhowe@gmail.com> | 2015-08-18 17:22:34 +0000 |
| commit | 00eebaf5bc5ff7a383a8ed085098abc24c8a2e74 (patch) | |
| tree | 23fe7ac344bf55f34eee3edc12ede3d209d65a8c | |
| parent | ac5e289476911d8db13fce8411a062814a069d4b (diff) | |
| download | python-openstackclient-00eebaf5bc5ff7a383a8ed085098abc24c8a2e74.tar.gz | |
Override the debug default and help text
Cliff sets the default debug value to False and this makes it
impossible to override debug with OCC. If we set the default to
None, we can override debug in clouds.yaml. Also, OSC changes
the meaning of --debug, so modify the help text.
Change-Id: I5e6680b2286cd7f55afe4b083fae5f8a4a9567a2
Closes-Bug: #1483378
| -rw-r--r-- | openstackclient/shell.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openstackclient/shell.py b/openstackclient/shell.py index a8b5ac4c..566a7cd9 100644 --- a/openstackclient/shell.py +++ b/openstackclient/shell.py @@ -79,6 +79,10 @@ class OpenStackShell(app.App): help.HelpCommand.auth_required = False complete.CompleteCommand.auth_required = False + # Slight change to the meaning of --debug + self.DEFAULT_DEBUG_VALUE = None + self.DEFAULT_DEBUG_HELP = 'Set debug logging and traceback on errors.' + super(OpenStackShell, self).__init__( description=__doc__.strip(), version=openstackclient.__version__, |
