aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorsconklin <sconklin@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-05-25 14:27:50 +0000
committersconklin <sconklin@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-05-25 14:27:50 +0000
commit3b6f37312b6a57ba054483b0fed9ad7374da41d3 (patch)
tree7c9240622986de868f3d623cee7b070e49f10ff5 /src/lib
parentfa08afe4ce3826784bdba53dae396516269d695e (diff)
downloadsos-3b6f37312b6a57ba054483b0fed9ad7374da41d3.tar.gz
Fixed a backtrace due to bad handling of nonexistent file in kernel plugin, and some minor typos, bumped release number
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@135 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/sos/plugins/kernel.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/sos/plugins/kernel.py b/src/lib/sos/plugins/kernel.py
index d9272d18..3e64252d 100644
--- a/src/lib/sos/plugins/kernel.py
+++ b/src/lib/sos/plugins/kernel.py
@@ -37,7 +37,7 @@ class kernel(sos.plugintools.PluginBase):
{'regex':'egenera*', 'description':'Egenera module'},
{'regex':'emcp*', 'description':'EMC module'},
{'regex':'ocfs*', 'description':'OCFS module'},
- {'regex':'nvidea', 'description':'nVidea module'},
+ {'regex':'nvidia', 'description':'NVidia module'},
{'regex':'ati-', 'description':'ATI module'}
]
@@ -93,6 +93,8 @@ class kernel(sos.plugintools.PluginBase):
for modname in modules:
modname=modname.split(" ")[0]
modinfo_srcver = commands.getoutput("/sbin/modinfo -F srcversion %s" % modname)
+ if not os.access("/sys/module/%s/srcversion" % modname, os.R_OK):
+ continue
infd = open("/sys/module/%s/srcversion" % modname, "r")
sys_srcver = infd.read().strip("\n")
infd.close()