aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-04-27 17:01:28 +0000
committerastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-04-27 17:01:28 +0000
commit19122306634f3bbe93ec17797f72a46e4599ff4e (patch)
tree7b5d5f71c9944c1d5dfb6ee5b2e5507e37c79e16
parentbeaf261ee8277a2dc9bee583f45a0225fecbcf77 (diff)
downloadsos-19122306634f3bbe93ec17797f72a46e4599ff4e.tar.gz
fix exceptions when referencing rhel6 versions
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@945 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rw-r--r--sos/plugins/general.py1
-rw-r--r--sos/plugins/s390.py6
-rwxr-xr-xsos/policyredhat.py2
3 files changed, 6 insertions, 3 deletions
diff --git a/sos/plugins/general.py b/sos/plugins/general.py
index 87b7e310..c78e409c 100644
--- a/sos/plugins/general.py
+++ b/sos/plugins/general.py
@@ -47,6 +47,7 @@ class general(sos.plugintools.PluginBase):
self.collectExtOutput("/bin/dmesg")
self.addCopySpec("/root/anaconda-ks.cfg")
self.collectExtOutput("/usr/sbin/alternatives --display java", root_symlink = "java")
+ self.collectExtOutput("/usr/bin/readlink -f /usr/bin/java")
if self.getOption('all_logs'):
rhelver = self.policy().rhelVersion()
diff --git a/sos/plugins/s390.py b/sos/plugins/s390.py
index ff938ca2..57e7eb5a 100644
--- a/sos/plugins/s390.py
+++ b/sos/plugins/s390.py
@@ -66,8 +66,8 @@ class s390(sos.plugintools.PluginBase):
self.collectExtOutput("/sbin/fdasd -p %s" % (x,))
try:
rhelver = self.policy().pkgByName("redhat-release")[1]
+ if rhelver == "5":
+ self.collectExtOutput("/sbin/lsqeth")
+ self.collectExtOutput("/sbin/lszfcp")
except:
rhelver = None
- if rhelver.startswith("5"):
- self.collectExtOutput("/sbin/lsqeth")
- self.collectExtOutput("/sbin/lszfcp")
diff --git a/sos/policyredhat.py b/sos/policyredhat.py
index 6cda8556..0bf39dbe 100755
--- a/sos/policyredhat.py
+++ b/sos/policyredhat.py
@@ -158,6 +158,8 @@ class SosPolicy:
return 4
elif pkgname in [ "5Server", "5Client" ]:
return 5
+ elif pkgname == "6":
+ return 6
except: pass
return False