From 78761114ea9cc1b33233db2186a5ff762e1ac2f2 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Mon, 26 Jan 2015 00:07:12 +0000 Subject: [libvirt] use join_sysroot() before calling os.path.exists The libvirt plugin tests for the presence of files. Use join_sysroot() to ensure the correct path is tested. Signed-off-by: Bryn M. Reeves --- sos/plugins/libvirt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sos/plugins/libvirt.py b/sos/plugins/libvirt.py index aaf862bc..295c8ebc 100644 --- a/sos/plugins/libvirt.py +++ b/sos/plugins/libvirt.py @@ -56,7 +56,7 @@ class Libvirt(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin): else: self.add_copy_spec("/var/log/libvirt") - if os.path.exists(libvirt_keytab): + if os.path.exists(self.join_sysroot(libvirt_keytab)): self.add_cmd_output("klist -ket %s" % libvirt_keytab) self.add_cmd_output("ls -lR /var/lib/libvirt/qemu") -- cgit