mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 15:32:38 -07:00
Make sure config has name and value when masking passwords
This commit is contained in:
parent
91476a420a
commit
f439bd639c
1 changed files with 1 additions and 1 deletions
|
@ -1182,7 +1182,7 @@ def split_args(args=None):
|
|||
def mask_config_passwords(config):
|
||||
if isinstance(config, list):
|
||||
for cfg in config:
|
||||
if 'password' in cfg['name'] and cfg['value'] != '':
|
||||
if 'password' in cfg.get('name', '') and cfg.get('value', '') != '':
|
||||
cfg['value'] = ' '
|
||||
|
||||
elif isinstance(config, dict):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue