Add a new string to the list of masked patterns

The string sys_pswd is a new key that I'd like to mask. Adding it to
the list.

Change-Id: I20ab4a54dfc9caece6d1eb9fc54d5c258fd54376
This commit is contained in:
Amrith Kumar 2015-03-18 12:36:00 -04:00
parent 6fe565d9b4
commit 4ab214e733
No known key found for this signature in database
GPG Key ID: D3F7A2F20E1E536F
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ SLUGIFY_HYPHENATE_RE = re.compile(r"[-\s]+")
# NOTE(flaper87): The following globals are used by `mask_password`
_SANITIZE_KEYS = ['adminPass', 'admin_pass', 'password', 'admin_password',
'auth_token', 'new_pass', 'auth_password', 'secret_uuid']
'auth_token', 'new_pass', 'auth_password', 'secret_uuid',
'sys_pswd']
# NOTE(ldbragst): Let's build a list of regex objects using the list of
# _SANITIZE_KEYS we already have. This way, we only have to add the new key