diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2015-01-13 16:31:58 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2015-01-13 16:31:58 +0000 |
commit | 5a97e0e2571b948f1f7bc602e6f190976de99eee (patch) | |
tree | 7b86c16cd5617e8995e4b2e5a1f380d6e5f0a753 | |
parent | db9ac3fb615b731be87b4116a8939105bf5ced56 (diff) | |
download | sos-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.py | 2 |
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********" ) |