aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-10-15 15:57:47 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-10-15 15:57:47 +0100
commit77ea53cf7c13c59c2a1f4608d59e1b9e8f4da835 (patch)
tree9710efb0ea66b1622486387db38cd917fa324120
parentf9aefde0d7f74867031a00b52f72d0ad1ff9463b (diff)
downloadsos-77ea53cf7c13c59c2a1f4608d59e1b9e8f4da835.tar.gz
[corosync] add postprocessing for corosync-objctl output
The corosync-objctl command may include fence device passwords in its output. Remove them with the same postprocessing regex as the cluster plugin uses. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/corosync.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/sos/plugins/corosync.py b/sos/plugins/corosync.py
index 2cd22c38..db9b5473 100644
--- a/sos/plugins/corosync.py
+++ b/sos/plugins/corosync.py
@@ -40,6 +40,13 @@ class Corosync(Plugin):
])
self.call_ext_prog("killall -USR2 corosync")
+ def postproc(self):
+ self.do_cmd_output_sub(
+ "corosync-objctl",
+ r"(.*fence.*\.passwd=)(.*)",
+ r"\1******"
+ )
+
class RedHatCorosync(Corosync, RedHatPlugin):