aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2013-11-07 18:17:18 +0000
committerBryn M. Reeves <bmr@redhat.com>2013-11-07 18:17:18 +0000
commit79c0aa73613e7b57449a6581a77fcad0dda4ae52 (patch)
treee58b751f10d1e2e021023d4ee08e38aca4101d70
parent3439787939f096564ef9b35faf774d0c1e35a8e6 (diff)
downloadsos-79c0aa73613e7b57449a6581a77fcad0dda4ae52.tar.gz
Fix regex substitution in openhpi plug-in
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/openhpi.py8
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********')