From 6aad22137a03744ae5a741c7ce05778614598f26 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Fri, 6 Jun 2014 21:01:13 +0100 Subject: [xen] replace os.popen() with self.call_ext_prog() Fixes #288. Signed-off-by: Bryn M. Reeves --- sos/plugins/xen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit