aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2009-09-08 16:23:40 +0000
committerastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2009-09-08 16:23:40 +0000
commit4979b83ef97db776eace4a27c6b5686616f3bef0 (patch)
tree52522910bac9fef0795dbf564ce012265ef7a124
parent4c63b0eb6c3e63c18a046fee95b8b444dfc3043b (diff)
downloadsos-4979b83ef97db776eace4a27c6b5686616f3bef0.tar.gz
update to mangle pwds in cluster.conf and backups
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@632 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rw-r--r--src/lib/sos/plugins/cluster.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/sos/plugins/cluster.py b/src/lib/sos/plugins/cluster.py
index 35d05948..28495a06 100644
--- a/src/lib/sos/plugins/cluster.py
+++ b/src/lib/sos/plugins/cluster.py
@@ -15,6 +15,7 @@
import sos.plugintools
import commands, os, re
import time, libxml2
+import glob
class cluster(sos.plugintools.PluginBase):
"""cluster suite and GFS related information
@@ -246,7 +247,8 @@ class cluster(sos.plugintools.PluginBase):
return
def postproc(self):
- self.doRegexSub("/etc/cluster/cluster.conf", r"(\s*\<fencedevice\s*.*\s*passwd\s*=\s*)\S+(\")", r"\1\"***\"")
+ for cluster_conf in glob.glob("/etc/cluster/cluster.conf*"):
+ self.doRegexSub(cluster_conf, r"(\s*\<fencedevice\s*.*\s*passwd\s*=\s*)\S+(\")", r"\1\"***\"")
return
def is_cluster_quorate(self):