summaryrefslogtreecommitdiff
path: root/openstackclient
diff options
context:
space:
mode:
Diffstat (limited to 'openstackclient')
-rw-r--r--openstackclient/common/client_config.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/openstackclient/common/client_config.py b/openstackclient/common/client_config.py
index 895909e9..273d6623 100644
--- a/openstackclient/common/client_config.py
+++ b/openstackclient/common/client_config.py
@@ -16,6 +16,8 @@
import logging
from os_client_config import config
+from oslo_utils import strutils
+import six
LOG = logging.getLogger(__name__)
@@ -179,7 +181,9 @@ class OSC_Config(config.OpenStackConfig):
config = self._auth_v2_ignore_v3(config)
config = self._auth_default_domain(config)
- LOG.debug("auth_config_hook(): %s" % config)
+ if LOG.isEnabledFor(logging.DEBUG):
+ LOG.debug("auth_config_hook(): %s",
+ strutils.mask_password(six.text_type(config)))
return config
def _validate_auth_ksc(self, config, cloud, fixed_argparse=None):