Skip to content

Commit bfebac8

Browse files
committed
Allow debug to be set in configuration file
The current default value for debug in cliff is False. Cloud config assumes that it was set that way on the command line and does not overlay it with the value from the configuration file. Cliff bug: https://bugs.launchpad.net/python-cliff/+bug/1483378 Change-Id: I66d82b489b2241dbcd1e1350e94259a54ce09de7
1 parent 85a0394 commit bfebac8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

openstackclient/shell.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,16 @@ def initialize_app(self, argv):
232232
},
233233
)
234234

235+
# TODO(thowe): Change cliff so the default value for debug
236+
# can be set to None.
237+
if not self.options.debug:
238+
self.options.debug = None
235239
self.cloud = cc.get_one_cloud(
236240
cloud=self.options.cloud,
237241
argparse=self.options,
238242
)
243+
if self.options.debug is not None:
244+
self.options.debug = False
239245

240246
self.log_configurator.configure(self.cloud)
241247
self.dump_stack_trace = self.log_configurator.dump_trace

0 commit comments

Comments
 (0)