diff options
Diffstat (limited to 'sos/report/plugins/canonical_livepatch_onprem.py')
-rw-r--r-- | sos/report/plugins/canonical_livepatch_onprem.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/report/plugins/canonical_livepatch_onprem.py b/sos/report/plugins/canonical_livepatch_onprem.py index 2bf82b84..cb36c6a5 100644 --- a/sos/report/plugins/canonical_livepatch_onprem.py +++ b/sos/report/plugins/canonical_livepatch_onprem.py @@ -32,7 +32,7 @@ class CanonicaLivepatchOnprem(Plugin, UbuntuPlugin): ] # Redact simple yaml style "key: value". - keys_regex = r"(^(-|\s)*(%s)\s*:\s*)(.*)" % "|".join(protect_keys) + keys_regex = fr"(^(-|\s)*({'|'.join(protect_keys)})\s*:\s*)(.*)" sub_regex = r"\1*********" self.do_path_regex_sub(onprem_conf, keys_regex, sub_regex) |