]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Mark 'sql_connection' config option as secret
authorRoman Podolyaka <rpodolyaka@mirantis.com>
Wed, 27 Mar 2013 05:59:39 +0000 (07:59 +0200)
committerRoman Podolyaka <rpodolyaka@mirantis.com>
Wed, 27 Mar 2013 06:14:39 +0000 (08:14 +0200)
Fixes bug 1160680.

Change-Id: I42b16d006f162cb41090fa34677d6ad054b6a55a

quantum/db/api.py

index 72bc2964d58b41b95cc062e01a1cdf2fdfbdc68e..2629b29379250aca5487ed97584ee3096eb709b4 100644 (file)
@@ -42,7 +42,8 @@ SQL_CONNECTION_DEFAULT = 'sqlite://'
 database_opts = [
     cfg.StrOpt('sql_connection',
                help=_('The SQLAlchemy connection string used to connect to '
-                      'the database')),
+                      'the database'),
+               secret=True),
     cfg.IntOpt('sql_max_retries', default=-1,
                help=_('Database reconnection retry times')),
     cfg.IntOpt('reconnect_interval', default=2,