From f79915ec1d975219719e0ba99128d7c62398ae0a Mon Sep 17 00:00:00 2001 From: Michael J Fork Date: Wed, 27 Mar 2013 02:34:49 +0000 Subject: 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 --- openstack/common/db/sqlalchemy/session.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openstack/common/db/sqlalchemy') 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'), -- cgit