aboutsummaryrefslogtreecommitdiffstats
path: root/sos/report/plugins/foreman_installer.py
diff options
context:
space:
mode:
Diffstat (limited to 'sos/report/plugins/foreman_installer.py')
-rw-r--r--sos/report/plugins/foreman_installer.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/sos/report/plugins/foreman_installer.py b/sos/report/plugins/foreman_installer.py
index d5a7c245..8967538a 100644
--- a/sos/report/plugins/foreman_installer.py
+++ b/sos/report/plugins/foreman_installer.py
@@ -69,14 +69,14 @@ class ForemanInstaller(Plugin, DebianPlugin, UbuntuPlugin):
# all scrubbing applied to configs must be applied to installer logs
# as well, since logs contain diff of configs
self.do_path_regex_sub(
- r"(/etc/foreman-(installer|maintain)/(.*)((conf)(.*)?))|(%s)"
- % install_logs,
+ r"(/etc/foreman-(installer|maintain)/(.*)((conf)(.*)?))|"
+ fr"({install_logs})",
r"((\:|\s*)(passw|cred|token|secret|key).*(\:\s|=))(.*)",
r"\1********")
# yaml values should be alphanumeric
self.do_path_regex_sub(
- r"(/etc/foreman-(installer|maintain)/(.*)((yaml|yml)(.*)?))|(%s)"
- % install_logs,
+ r"(/etc/foreman-(installer|maintain)/(.*)((yaml|yml)(.*)?))|"
+ fr"({install_logs})",
r"((\:|\s*)(passw|cred|token|secret|key).*(\:\s|=))(.*)",
r'\1"********"')