aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-06-06 21:01:13 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-06-06 21:01:55 +0100
commit6aad22137a03744ae5a741c7ce05778614598f26 (patch)
tree0b9de13549a3055bd8ccc0da87d7487ca21397a7
parentc3f54c342de5d24ae67314c671a930abab33a489 (diff)
downloadsos-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.py2
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()