Skip to content

Commit 00eebaf

Browse files
committed
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
1 parent ac5e289 commit 00eebaf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

openstackclient/shell.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ def __init__(self):
7979
help.HelpCommand.auth_required = False
8080
complete.CompleteCommand.auth_required = False
8181

82+
# Slight change to the meaning of --debug
83+
self.DEFAULT_DEBUG_VALUE = None
84+
self.DEFAULT_DEBUG_HELP = 'Set debug logging and traceback on errors.'
85+
8286
super(OpenStackShell, self).__init__(
8387
description=__doc__.strip(),
8488
version=openstackclient.__version__,

0 commit comments

Comments
 (0)