Hiding postgresql password in connection string
Change-Id: Iafc820d6201acf5b563b62bd9f20a715901f1ab4 Closes-Bug: #1266804
This commit is contained in:
parent
cc10525820
commit
2d0278fa43
|
@ -611,7 +611,8 @@ def wait():
|
|||
# hide flag contents from log if contains a password
|
||||
# should use secret flag when switch over to openstack-common
|
||||
if ("_password" in flag or "_key" in flag or
|
||||
(flag == "sql_connection" and "mysql:" in flag_get)):
|
||||
(flag == "sql_connection" and
|
||||
("mysql:" in flag_get or "postgresql:" in flag_get))):
|
||||
LOG.debug(_('%(flag)s : FLAG SET ') % locals())
|
||||
else:
|
||||
LOG.debug('%(flag)s : %(flag_get)s' % locals())
|
||||
|
|
Loading…
Reference in New Issue