]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Mark sql_connection with secret flag
authorMichael J Fork <mjfork@us.ibm.com>
Thu, 28 Mar 2013 02:58:04 +0000 (02:58 +0000)
committerMichael J Fork <mjfork@us.ibm.com>
Thu, 28 Mar 2013 02:58:04 +0000 (02:58 +0000)
sql_connection contains the password in some setups and marking as
secret prevents accidental logging

fixes bug 1160680

Change-Id: I3704237d0923bb30138b5ece7e5c7bbda0a78b9b

cinder/flags.py

index d82e1ca8a508107898d8c8dc4910873b75863bf9..27e5b41b42dee8814d53143acf3086672ee8b49e 100644 (file)
@@ -81,7 +81,8 @@ core_opts = [
     cfg.StrOpt('sql_connection',
                default='sqlite:///$state_path/$sqlite_db',
                help='The SQLAlchemy connection string used to connect to the '
-                    'database'),
+                    'database',
+               secret=True),
     cfg.IntOpt('sql_connection_debug',
                default=0,
                help='Verbosity of SQL debugging information. 0=None, '