summaryrefslogtreecommitdiff
path: root/openstackclient/shell.py
diff options
context:
space:
mode:
authorTerryHowe <terrylhowe@gmail.com>2015-08-18 10:09:46 -0600
committerTerry Howe <terrylhowe@gmail.com>2015-08-18 17:22:34 +0000
commit00eebaf5bc5ff7a383a8ed085098abc24c8a2e74 (patch)
tree23fe7ac344bf55f34eee3edc12ede3d209d65a8c /openstackclient/shell.py
parentac5e289476911d8db13fce8411a062814a069d4b (diff)
downloadpython-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
Diffstat (limited to 'openstackclient/shell.py')
-rw-r--r--openstackclient/shell.py4
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__,