summaryrefslogtreecommitdiff
path: root/openstackclient/shell.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-10-30 09:08:37 +0000
committerGerrit Code Review <review@openstack.org>2015-10-30 09:08:37 +0000
commit17ebd15a133dd84aebdcd1e0aeef662e86fe5796 (patch)
treec8ca4c18b4d7aa3cac61f7eaeb513ddeb699a291 /openstackclient/shell.py
parent039c85965321a4bbe0f4d5288cdbf5dd2fea19bf (diff)
parentbfebac82825a7242ad4e2923e3b71d38b391f08e (diff)
downloadpython-openstackclient-17ebd15a133dd84aebdcd1e0aeef662e86fe5796.tar.gz
Merge "Allow debug to be set in configuration file"
Diffstat (limited to 'openstackclient/shell.py')
-rw-r--r--openstackclient/shell.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/openstackclient/shell.py b/openstackclient/shell.py
index 1a5055bd..16ba1aab 100644
--- a/openstackclient/shell.py
+++ b/openstackclient/shell.py
@@ -241,10 +241,16 @@ class OpenStackShell(app.App):
},
)
+ # TODO(thowe): Change cliff so the default value for debug
+ # can be set to None.
+ if not self.options.debug:
+ self.options.debug = None
self.cloud = cc.get_one_cloud(
cloud=self.options.cloud,
argparse=self.options,
)
+ if self.options.debug is not None:
+ self.options.debug = False
self.log_configurator.configure(self.cloud)
self.dump_stack_trace = self.log_configurator.dump_trace