diff options
author | zjingbj <zjingbj@cn.ibm.com> | 2014-12-03 12:42:39 +0800 |
---|---|---|
committer | zjingbj <zjingbj@cn.ibm.com> | 2014-12-04 11:26:51 +0800 |
commit | 146039eeb4505429d8d5af92f212bae43dbd05f5 (patch) | |
tree | dbee6ebeb1bec71c890f428d046e93900ca7d505 | |
parent | f1318ec3e840b870635b13ed99d9064693589b16 (diff) | |
download | ceilometer-146039eeb4505429d8d5af92f212bae43dbd05f5.tar.gz |
Do not print snmpd password in logs
The snmpd password is sensitive information, so we'd better not
print it.
Change-Id: I4ab11c468ae7e13214303c755e60717bd407cbe8
Closes-Bug: #1398670
(cherry picked from commit 11a64b2142b6f475281c57ab071498487b213cf9)
-rw-r--r-- | ceilometer/hardware/discovery.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ceilometer/hardware/discovery.py b/ceilometer/hardware/discovery.py index 3b7863a2..44a15682 100644 --- a/ceilometer/hardware/discovery.py +++ b/ceilometer/hardware/discovery.py @@ -31,7 +31,8 @@ OPTS = [ help='SNMPd user name of all nodes running in the cloud.'), cfg.StrOpt('readonly_user_password', default='password', - help='SNMPd password of all the nodes running in the cloud'), + help='SNMPd password of all the nodes running in the cloud.', + secret=True), ] cfg.CONF.register_opts(OPTS, group='hardware') |