summaryrefslogtreecommitdiff
path: root/oslo/config/cfg.py
diff options
context:
space:
mode:
authorZhongyue Luo <zhongyue.nah@intel.com>2014-08-05 10:36:50 +0800
committerZhongyue Luo <zhongyue.nah@intel.com>2014-08-05 10:38:50 +0800
commita590c2afee3a08abb0f80e4b07674a6a4f53ed3a (patch)
treeaf9ac6b8c8a3abfd8cbf0fa9fcc7ab132f0c8ffc /oslo/config/cfg.py
parent46eabcca657164d9967cc942bcd6f4e680100227 (diff)
downloadoslo-config-a590c2afee3a08abb0f80e4b07674a6a4f53ed3a.tar.gz
Log a fixed length string of asterisks for obfuscation
Change-Id: I98e95dbc92712bebb18dcf0d29af7cfe7f2c8124 Closes-bug: #1341774
Diffstat (limited to 'oslo/config/cfg.py')
-rw-r--r--oslo/config/cfg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/oslo/config/cfg.py b/oslo/config/cfg.py
index 555b910..0ff708e 100644
--- a/oslo/config/cfg.py
+++ b/oslo/config/cfg.py
@@ -1972,7 +1972,7 @@ class ConfigOpts(collections.Mapping):
def _sanitize(opt, value):
"""Obfuscate values of options declared secret."""
- return value if not opt.secret else '*' * len(str(value))
+ return value if not opt.secret else '*' * 4
for opt_name in sorted(self._opts):
opt = self._get_opt_info(opt_name)['opt']