aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-04-14 22:11:59 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-04-14 22:11:59 +0100
commit1437ebb17026acafca30fd9276664b1bee0e1ada (patch)
tree93f2c91e9f16ea3032e701b69fa3fcae05fa0228
parent74b88d7b69a0106e45a4ade9117a02427d0d319d (diff)
downloadsos-1437ebb17026acafca30fd9276664b1bee0e1ada.tar.gz
Fix debugfs_path usage in kvm plugin
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/kvm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sos/plugins/kvm.py b/sos/plugins/kvm.py
index ad656bce..c7d34790 100644
--- a/sos/plugins/kvm.py
+++ b/sos/plugins/kvm.py
@@ -37,7 +37,7 @@ class Kvm(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
"/sys/module/kvm_amd/srcversion",
"/sys/module/ksm/srcversion"
])
- if not os.path.ismount(debugfs_path):
+ if not os.path.ismount(self.debugfs_path):
self._debugfs_cleanup = True
r = self.call_ext_prog("mount -t debugfs debugfs %s"
% self.debugfs_path)
@@ -48,7 +48,7 @@ class Kvm(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
self.add_cmd_output("kvm_stat --once")
def postproc(self):
- if self._debugfs_cleanup and os.path.ismount(debugfs_path):
+ if self._debugfs_cleanup and os.path.ismount(self.debugfs_path):
r = self.call_ext_prog("umount %s" % self.debugfs_path)
self.log_error("could not unmount %s" % self.debugfs_path)