Hiding postgresql password in connection string

Closes-Bug: #1266804
Change-Id: Iafc820d6201acf5b563b62bd9f20a715901f1ab4
This commit is contained in:
Sascha Peilicke 2014-01-13 11:20:11 +01:00
parent ec8ce6cdf2
commit e8aeb57599
1 changed files with 2 additions and 1 deletions

View File

@ -615,7 +615,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(_('%s : FLAG SET ') % flag)
else:
LOG.debug('%(flag)s : %(flag_get)s' %