diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-10-14 19:03:41 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-10-14 19:03:41 +0000 |
| commit | eab508fddd671b8946094335b93e3ae9db493e29 (patch) | |
| tree | 794c035b93fc0aa8928cd15cbe52ff495ac1a862 /openstackclient/common | |
| parent | 155e8c6f1ee66e35e6f49788b3cf35d171c0c8bc (diff) | |
| parent | f0a81c284d2f533e0fe8adc747c5bd0532a7684f (diff) | |
| download | python-openstackclient-eab508fddd671b8946094335b93e3ae9db493e29.tar.gz | |
Merge "Mask the sensitive values in debug log"
Diffstat (limited to 'openstackclient/common')
| -rw-r--r-- | openstackclient/common/clientmanager.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openstackclient/common/clientmanager.py b/openstackclient/common/clientmanager.py index 55c6fe53..edabf65e 100644 --- a/openstackclient/common/clientmanager.py +++ b/openstackclient/common/clientmanager.py @@ -20,6 +20,7 @@ import logging import pkg_resources import sys +from oslo_utils import strutils import requests from openstackclient.api import auth @@ -167,7 +168,8 @@ class ClientManager(object): self._project_name = self._auth_params['tenant_name'] LOG.info('Using auth plugin: %s' % self.auth_plugin_name) - LOG.debug('Using parameters %s' % self._auth_params) + LOG.debug('Using parameters %s' % + strutils.mask_password(self._auth_params)) self.auth = auth_plugin.load_from_options(**self._auth_params) # needed by SAML authentication request_session = requests.session() |
