diff options
-rw-r--r-- | sos/plugins/openhpi.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sos/plugins/openhpi.py b/sos/plugins/openhpi.py index a75f016d..dbe004d4 100644 --- a/sos/plugins/openhpi.py +++ b/sos/plugins/openhpi.py @@ -28,10 +28,6 @@ class OpenHPI(Plugin, RedHatPlugin): ]) def postproc(self): - self.do_file_sub("/etc/openhpi/openhpi.conf" - r'([Pp]assw(or)?d|[Pp]assphrase)[[:space:]]+\=[[:space:]]"(.*)"', - r"\1******") - self.do_file_sub("/etc/openhpi/openhpiclient.conf" - r'([Pp]assw(or)?d|[Pp]assphrase)[[:space:]]+\=[[:space:]]"(.*)"', - r"\1******") + self.do_file_sub("/etc/openhpi/openhpi.conf", + r'(\s*[Pp]ass.*\s*=\s*).*', r'\1********') |