diff options
-rw-r--r-- | sos/plugins/distupgrade.py | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/sos/plugins/distupgrade.py b/sos/plugins/distupgrade.py index 8bc44c23..a98d3713 100644 --- a/sos/plugins/distupgrade.py +++ b/sos/plugins/distupgrade.py @@ -34,6 +34,23 @@ class RedHatDistUpgrade(DistUpgrade, RedHatPlugin): "/root/preupgrade/kickstart" ) - + def postproc(self): + self.doRegexSub( + "/root/preupgrade/kickstart/anaconda-ks.cfg", + r"(useradd --password) (.*)", + r"\1 ********" + ) + + self.doRegexSub( + "/root/preupgrade/kickstart/anaconda-ks.cfg", + r"(\s*rootpw\s*).*", + r"\1********" + ) + + self.doRegexSub( + "/root/preupgrade/kickstart/untrackeduser", + r"\/home\/.*", + r"/home/******** path redacted ********" + ) # vim: et ts=4 sw=4 |