aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/anaconda.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/sos/plugins/anaconda.py b/sos/plugins/anaconda.py
index e165ba77..d33f5abc 100644
--- a/sos/plugins/anaconda.py
+++ b/sos/plugins/anaconda.py
@@ -41,8 +41,15 @@ class Anaconda(Plugin, RedHatPlugin):
self.add_copy_specs(paths)
def postproc(self):
- self.do_file_sub("/root/anaconda-ks.cfg",
- r"(\s*rootpw\s*).*",
- r"\1******")
+ self.do_file_sub(
+ "/root/anaconda-ks.cfg",
+ r"(\s*rootpw\s*).*",
+ r"\1********"
+ )
+ self.do_file_sub(
+ "/root/anaconda-ks.cfg",
+ r"(useradd --password) (.*)",
+ r"\1 ********"
+ )
# vim: et ts=4 sw=4