Blame SOURCES/0069-libvirt-use-join_sysroot-before-calling-os.path.exis.patch

0cd6dc
From 6aefb575156919be36650c3231abf185dacf6aa8 Mon Sep 17 00:00:00 2001
0cd6dc
From: "Bryn M. Reeves" <bmr@redhat.com>
0cd6dc
Date: Mon, 26 Jan 2015 00:07:12 +0000
0cd6dc
Subject: [PATCH 69/93] [libvirt] use join_sysroot() before calling
0cd6dc
 os.path.exists
0cd6dc
0cd6dc
The libvirt plugin tests for the presence of files. Use
0cd6dc
join_sysroot() to ensure the correct path is tested.
0cd6dc
0cd6dc
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
0cd6dc
---
0cd6dc
 sos/plugins/libvirt.py | 2 +-
0cd6dc
 1 file changed, 1 insertion(+), 1 deletion(-)
0cd6dc
0cd6dc
diff --git a/sos/plugins/libvirt.py b/sos/plugins/libvirt.py
0cd6dc
index 9ff8a56..ee3d4c6 100644
0cd6dc
--- a/sos/plugins/libvirt.py
0cd6dc
+++ b/sos/plugins/libvirt.py
0cd6dc
@@ -55,7 +55,7 @@ class Libvirt(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
0cd6dc
         else:
0cd6dc
             self.add_copy_spec("/var/log/libvirt")
0cd6dc
 
0cd6dc
-        if os.path.exists(libvirt_keytab):
0cd6dc
+        if os.path.exists(self.join_sysroot(libvirt_keytab)):
0cd6dc
             self.add_cmd_output("klist -ket %s" % libvirt_keytab)
0cd6dc
 
0cd6dc
     def postproc(self):
0cd6dc
-- 
0cd6dc
1.9.3
0cd6dc