Attempt to fix secret blurring (#5326)

This commit is contained in:
Jesse Hills 2023-09-02 08:41:52 +12:00
parent c146712b16
commit 3f8bad3ed1
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

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!")