From 1437ebb17026acafca30fd9276664b1bee0e1ada Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Mon, 14 Apr 2014 22:11:59 +0100 Subject: Fix debugfs_path usage in kvm plugin Signed-off-by: Bryn M. Reeves --- sos/plugins/kvm.py | 4 ++-- 1 file 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) -- cgit