Skip to content

Commit

Permalink
Merge pull request #209 from DMTF/Fix208-Password-Printing
Browse files Browse the repository at this point in the history
Hide password and token parameters from console output when running the tool from a config file
  • Loading branch information
mraineri authored Jun 14, 2024
2 parents 25d109d + e988be2 commit 586a5df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions redfish_interop_validator/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ def convert_config_to_args(args, config):
setattr(args, option, my_config[section][option].split(' '))
else:
setattr(args, option, my_config[section][option])
if option.lower() in ['password', 'token']:
my_config.set(section, option, '******')
my_config_dict = config_parse_to_dict(my_config)
import json
print(json.dumps(my_config_dict, indent=4))
Expand Down

0 comments on commit 586a5df

Please sign in to comment.