diff options
author | shnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2007-07-29 07:26:19 +0000 |
---|---|---|
committer | shnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2007-07-29 07:26:19 +0000 |
commit | 2f159c997e8d2ec16d670ddf00b605f037645813 (patch) | |
tree | 9208f6857b1d825c1df3733eb7657e30e3c2dac2 /src/lib | |
parent | 43ff5b0065eb772859f55b4d397b971d2c3a8f90 (diff) | |
download | sos-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
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/sos/plugins/cluster.py | 5 |
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) |