From 11a64b2142b6f475281c57ab071498487b213cf9 Mon Sep 17 00:00:00 2001 From: zjingbj Date: Wed, 3 Dec 2014 12:42:39 +0800 Subject: [PATCH] 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 --- ceilometer/hardware/discovery.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ceilometer/hardware/discovery.py b/ceilometer/hardware/discovery.py index 9231d008b..cbcd5aa77 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')