Blame SOURCES/sos-bz1112175-anaconda-make-useradd-password-regex-tolerant.patch

e75bc7
From 5a97e0e2571b948f1f7bc602e6f190976de99eee Mon Sep 17 00:00:00 2001
e75bc7
From: "Bryn M. Reeves" <bmr@redhat.com>
e75bc7
Date: Tue, 13 Jan 2015 16:31:58 +0000
e75bc7
Subject: [PATCH] [anaconda] make useradd password regex tolerant of whitespace
e75bc7
e75bc7
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
e75bc7
---
e75bc7
 sos/plugins/anaconda.py | 2 +-
e75bc7
 1 file changed, 1 insertion(+), 1 deletion(-)
e75bc7
e75bc7
diff --git a/sos/plugins/anaconda.py b/sos/plugins/anaconda.py
e75bc7
index 08d300b..aea3300 100644
e75bc7
--- a/sos/plugins/anaconda.py
e75bc7
+++ b/sos/plugins/anaconda.py
e75bc7
@@ -54,7 +54,7 @@ class Anaconda(Plugin, RedHatPlugin):
e75bc7
         )
e75bc7
         self.do_file_sub(
e75bc7
             "/root/anaconda-ks.cfg",
e75bc7
-            r"(user.*--password=*)(\S*)",
e75bc7
+            r"(user.*--password=*\s*)\s*(\S*)",
e75bc7
             r"\1********"
e75bc7
         )
e75bc7
 
e75bc7
-- 
e75bc7
1.9.3
e75bc7