diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2014-06-06 21:01:13 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2014-06-06 21:01:55 +0100 |
commit | 6aad22137a03744ae5a741c7ce05778614598f26 (patch) | |
tree | 0b9de13549a3055bd8ccc0da87d7487ca21397a7 | |
parent | c3f54c342de5d24ae67314c671a930abab33a489 (diff) | |
download | sos-6aad22137a03744ae5a741c7ce05778614598f26.tar.gz |
[xen] replace os.popen() with self.call_ext_prog()
Fixes #288.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/xen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/xen.py b/sos/plugins/xen.py index c55b3fdc..40625895 100644 --- a/sos/plugins/xen.py +++ b/sos/plugins/xen.py @@ -41,7 +41,7 @@ class Xen(Plugin, RedHatPlugin): return (self.determine_xen_host() == "baremetal") def is_running_xenstored(self): - xs_pid = os.popen("pidof xenstored").read() + xs_pid = self.call_ext_prof("pidof xenstored")['ouput'] xs_pidnum = re.split('\n$',xs_pid)[0] return xs_pidnum.isdigit() |