diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2015-01-26 00:07:12 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2015-07-08 17:05:21 +0100 |
commit | 78761114ea9cc1b33233db2186a5ff762e1ac2f2 (patch) | |
tree | 28ef765259bd62d32c62a14ac5637390835751c4 | |
parent | 4ae09ee0ed25d771cc6cc8a013837ed4c647b3ed (diff) | |
download | sos-78761114ea9cc1b33233db2186a5ff762e1ac2f2.tar.gz |
[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 <bmr@redhat.com>
-rw-r--r-- | sos/plugins/libvirt.py | 2 |
1 files changed, 1 insertions, 1 deletions
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") |