Skip to content

Commit

Permalink
Mark sql_connection with secret flag
Browse files Browse the repository at this point in the history
sql_connection contains the password in some setups and marking as
secret prevents accidental logging

fixes bug 1160680

Change-Id: I3704237d0923bb30138b5ece7e5c7bbda0a78b9b
(cherry picked from commit 9f8ee9d)
  • Loading branch information
mjfork authored and Chuck Short committed Apr 11, 2013
1 parent fed7c92 commit 2113fe1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cinder/flags.py
Expand Up @@ -81,7 +81,8 @@ def _get_my_ip():
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, '
Expand Down

0 comments on commit 2113fe1

Please sign in to comment.