]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Hiding postgresql password in connection string
authorgalstrom21 <jshepher@rackspace.com>
Tue, 7 Jan 2014 16:38:06 +0000 (10:38 -0600)
committergalstrom21 <jshepher@rackspace.com>
Tue, 7 Jan 2014 16:40:04 +0000 (10:40 -0600)
Closes-Bug: #1266804
Change-Id: Iafc820d6201acf5b563b62bd9f20a715901f1ab4

cinder/service.py

index 02674f5cfee11b65a0f4eb63a7a496f14f134588..ea21cd4eba284f781922db7dc8eaab00750e4d63 100644 (file)
@@ -633,7 +633,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' %