diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-10-07 01:34:03 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-10-07 01:34:03 +0000 |
| commit | 7e7f75575424fe6d88cd4005acef2ae9a8b5ecbf (patch) | |
| tree | 44413d33e2acb1a2ccd065716084be676793b800 /openstackclient | |
| parent | 5ba5e1e321712578029c3de499d2992a955e2d11 (diff) | |
| parent | cd1a412408f068aeef97c1ee368400307fce7733 (diff) | |
| download | python-openstackclient-7e7f75575424fe6d88cd4005acef2ae9a8b5ecbf.tar.gz | |
Merge "Mask passwords in debug logs for auth_config_hook"
Diffstat (limited to 'openstackclient')
| -rw-r--r-- | openstackclient/common/client_config.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/openstackclient/common/client_config.py b/openstackclient/common/client_config.py index 30286df8..d6297753 100644 --- a/openstackclient/common/client_config.py +++ b/openstackclient/common/client_config.py @@ -17,6 +17,8 @@ import logging from os_client_config import config from os_client_config import exceptions as occ_exceptions +from oslo_utils import strutils +import six LOG = logging.getLogger(__name__) @@ -180,7 +182,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 load_auth_plugin(self, config): |
