Attempt to fix secret blurring (#5326)

This commit is contained in:
Jesse Hills 2023-09-02 08:41:52 +12:00 committed by GitHub
parent c3332e4a39
commit bec53f97a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -371,7 +371,7 @@ def command_config(args, config):
# add the console decoration so the front-end can hide the secrets
if not args.show_secrets:
output = re.sub(
r"(password|key|psk|ssid)\:\s(.*)", r"\1: \\033[5m\2\\033[6m", output
r"(password|key|psk|ssid)\: (.+)", r"\1: \\033[5m\2\\033[6m", output
)
safe_print(output)
_LOGGER.info("Configuration is valid!")