aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-07-29 07:26:19 +0000
committershnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-07-29 07:26:19 +0000
commit2f159c997e8d2ec16d670ddf00b605f037645813 (patch)
tree9208f6857b1d825c1df3733eb7657e30e3c2dac2
parent43ff5b0065eb772859f55b4d397b971d2c3a8f90 (diff)
downloadsos-2f159c997e8d2ec16d670ddf00b605f037645813.tar.gz
typo (fedora-release instead of redhat-release used for testing)
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@248 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rw-r--r--src/lib/sos/plugins/cluster.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/sos/plugins/cluster.py b/src/lib/sos/plugins/cluster.py
index 595d940a..fbd3b29d 100644
--- a/src/lib/sos/plugins/cluster.py
+++ b/src/lib/sos/plugins/cluster.py
@@ -36,8 +36,9 @@ class cluster(sos.plugintools.PluginBase):
return False
def diagnose(self):
- rhelver = self.cInfo["policy"].pkgDictByName("fedora-release")[0]
- if rhelver == "6":
+ try: rhelver = self.cInfo["policy"].pkgDictByName("redhat-release")[0]
+ except: rhelver = None
+ if rhelver == "4" or not rhelver:
# check if the minimum set of packages is installed
# for RHEL4 RHCS(ccs, cman, cman-kernel, magma, magma-plugins, (dlm, dlm-kernel) || gulm, perl-Net-Telnet, rgmanager, fence)
# RHEL4 GFS (GFS, GFS-kernel, ccs, lvm2-cluster, fence)