Blame SOURCES/0011-corosync-add-postprocessing-for-corosync-objctl-outp.patch

0cd6dc
From 77ea53cf7c13c59c2a1f4608d59e1b9e8f4da835 Mon Sep 17 00:00:00 2001
0cd6dc
From: "Bryn M. Reeves" <bmr@redhat.com>
0cd6dc
Date: Wed, 15 Oct 2014 15:57:47 +0100
0cd6dc
Subject: [PATCH 11/93] [corosync] add postprocessing for corosync-objctl
0cd6dc
 output
0cd6dc
0cd6dc
The corosync-objctl command may include fence device passwords in
0cd6dc
its output. Remove them with the same postprocessing regex as the
0cd6dc
cluster plugin uses.
0cd6dc
0cd6dc
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
0cd6dc
---
0cd6dc
 sos/plugins/corosync.py | 7 +++++++
0cd6dc
 1 file changed, 7 insertions(+)
0cd6dc
0cd6dc
diff --git a/sos/plugins/corosync.py b/sos/plugins/corosync.py
0cd6dc
index 2cd22c3..db9b547 100644
0cd6dc
--- a/sos/plugins/corosync.py
0cd6dc
+++ b/sos/plugins/corosync.py
0cd6dc
@@ -40,6 +40,13 @@ class Corosync(Plugin):
0cd6dc
         ])
0cd6dc
         self.call_ext_prog("killall -USR2 corosync")
0cd6dc
 
0cd6dc
+    def postproc(self):
0cd6dc
+        self.do_cmd_output_sub(
0cd6dc
+            "corosync-objctl",
0cd6dc
+            r"(.*fence.*\.passwd=)(.*)",
0cd6dc
+            r"\1******"
0cd6dc
+        )
0cd6dc
+
0cd6dc
 
0cd6dc
 class RedHatCorosync(Corosync, RedHatPlugin):
0cd6dc
 
0cd6dc
-- 
0cd6dc
1.9.3
0cd6dc