Blame SOURCES/sos-bz1956817-fix-unmatched-group-error-in-scrubbing-installer-logs.patch

5866eb
From 612b65cf4551b8b40afbc75d707bc7e573fcc6fe Mon Sep 17 00:00:00 2001
5866eb
From: Jan Jansky <jjansky@redhat.com>
5866eb
Date: Tue, 4 May 2021 13:02:20 +0200
5866eb
Subject: [PATCH] [foreman] fix unmatched group error in scrubbing installer
5866eb
 logs
5866eb
5866eb
Legacy PR.
5866eb
5866eb
Having just one whitespace before "Found key:" failed to match
5866eb
the first group.
5866eb
5866eb
Related: #2521
5866eb
Resolves: #2522
5866eb
5866eb
Signed-off-by: Jan Jansky <jjansky@redhat.com>
5866eb
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
5866eb
---
5866eb
 sos/plugins/foreman.py | 2 +-
5866eb
 1 file changed, 1 insertion(+), 1 deletion(-)
5866eb
5866eb
diff --git a/sos/plugins/foreman.py b/sos/plugins/foreman.py
5866eb
index 84fb4b0..d3d3543 100644
5866eb
--- a/sos/plugins/foreman.py
5866eb
+++ b/sos/plugins/foreman.py
5866eb
@@ -274,7 +274,7 @@ class Foreman(Plugin):
5866eb
             satreg,
5866eb
             r"\1 ********")
5866eb
         # need to do two passes here, debug output has different formatting
5866eb
-        sat_debug_reg = (r"(\s)* (Found key: (\"(foreman(.*?)|katello)"
5866eb
+        sat_debug_reg = (r"(\s)+(Found key: (\"(foreman(.*?)|katello)"
5866eb
                          r"::(.*(token|secret|key|passw).*)\") value:) "
5866eb
                          r"(.*)")
5866eb
         self.do_path_regex_sub(
5866eb
-- 
5866eb
1.8.3.1
5866eb