diff options
| author | Michael J Fork <mjfork@us.ibm.com> | 2013-03-27 02:34:49 +0000 |
|---|---|---|
| committer | Michael J Fork <mjfork@us.ibm.com> | 2013-03-27 02:41:18 +0000 |
| commit | f79915ec1d975219719e0ba99128d7c62398ae0a (patch) | |
| tree | 24bb54aa67d38d2afd40f8b9a54326e71b4f6b29 /openstack | |
| parent | 1353ff7f587cce185585c6b3f2454ba6f2fd2171 (diff) | |
| download | oslo-f79915ec1d975219719e0ba99128d7c62398ae0a.tar.gz oslo-f79915ec1d975219719e0ba99128d7c62398ae0a.tar.xz oslo-f79915ec1d975219719e0ba99128d7c62398ae0a.zip | |
Mark sql_connection with secret flag
sql_connection contains the password in some setups and marking as
secret prevents accidental logging
fixes bug 1160680
Change-Id: Ib2d00219ea40a010c62e6a29045309f030e6de28
Diffstat (limited to 'openstack')
| -rw-r--r-- | openstack/common/db/sqlalchemy/session.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openstack/common/db/sqlalchemy/session.py b/openstack/common/db/sqlalchemy/session.py index cbf40fd..31e9612 100644 --- a/openstack/common/db/sqlalchemy/session.py +++ b/openstack/common/db/sqlalchemy/session.py @@ -264,7 +264,8 @@ sql_opts = [ os.path.abspath(os.path.join(os.path.dirname(__file__), '../', '$sqlite_db')), help='The SQLAlchemy connection string used to connect to the ' - 'database'), + 'database', + secret=True), cfg.StrOpt('sqlite_db', default='oslo.sqlite', help='the filename to use with sqlite'), |
