aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2015-01-13 16:31:58 +0000
committerBryn M. Reeves <bmr@redhat.com>2015-01-13 16:31:58 +0000
commit5a97e0e2571b948f1f7bc602e6f190976de99eee (patch)
tree7b86c16cd5617e8995e4b2e5a1f380d6e5f0a753
parentdb9ac3fb615b731be87b4116a8939105bf5ced56 (diff)
downloadsos-5a97e0e2571b948f1f7bc602e6f190976de99eee.tar.gz
[anaconda] make useradd password regex tolerant of whitespace
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/anaconda.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/anaconda.py b/sos/plugins/anaconda.py
index 08d300b2..aea3300e 100644
--- a/sos/plugins/anaconda.py
+++ b/sos/plugins/anaconda.py
@@ -54,7 +54,7 @@ class Anaconda(Plugin, RedHatPlugin):
)
self.do_file_sub(
"/root/anaconda-ks.cfg",
- r"(user.*--password=*)(\S*)",
+ r"(user.*--password=*\s*)\s*(\S*)",
r"\1********"
)