From 2f159c997e8d2ec16d670ddf00b605f037645813 Mon Sep 17 00:00:00 2001 From: shnavid Date: Sun, 29 Jul 2007 07:26:19 +0000 Subject: 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 --- src/lib/sos/plugins/cluster.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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) -- cgit