aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/kernel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sos/plugins/kernel.py b/sos/plugins/kernel.py
index 8c50da2d..de25e8b6 100644
--- a/sos/plugins/kernel.py
+++ b/sos/plugins/kernel.py
@@ -27,10 +27,10 @@ class kernel(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
self.add_cmd_output("lsmod", root_symlink = "lsmod")
try:
- modules = os.listdir(sys_module)
+ modules = os.listdir(self.sys_module)
self.add_cmd_output("modinfo " + " ".join(modules))
except OSError:
- self.soslog.error("could not list %s" % sys_module)
+ self.soslog.error("could not list %s" % self.sys_module)
self.add_cmd_output("sysctl -a")
self.add_copy_specs([