From 20d76a6d668c545b8691cc70d79a7fcccc113bda Mon Sep 17 00:00:00 2001 From: "Dr. Jason Breitweg" Date: Tue, 10 Oct 2023 11:27:24 +0200 Subject: [PATCH] Fixed yet more linting errors Signed-off-by: Jason Breitweg jbreitwe@redhat.com Signed-off-by: Dr. Jason Breitweg --- sos/report/plugins/pulp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sos/report/plugins/pulp.py b/sos/report/plugins/pulp.py index 3fbda1738b..f5c762f48f 100644 --- a/sos/report/plugins/pulp.py +++ b/sos/report/plugins/pulp.py @@ -174,9 +174,9 @@ def postproc(self): # and AUTH_LDAP_BIND_PASSWORD = .. # in dynaconf list output and also in settings.py # count with option that PASSWORD is with(out) quotes or in capitals - key_pass_re = "((?:SECRET_KEY|AUTH_LDAP_BIND_PASSWORD)" \ - "(?:\<.+\>)?(\s*=)?|(password|PASSWORD)" \ - "(\"|'|:)+)\s*(\S*)" + key_pass_re = r"((?:SECRET_KEY|AUTH_LDAP_BIND_PASSWORD)" \ + r"(?:\<.+\>)?(\s*=)?|(password|PASSWORD)" \ + r"(\"|'|:)+)\s*(\S*)" repl = r"\1 ********" self.do_path_regex_sub("/etc/pulp/settings.py", key_pass_re, repl) self.do_cmd_output_sub("dynaconf list", key_pass_re, repl)