From 412671ee48804867fc6707fa12409ae9365f5ea3 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Mon, 24 Sep 2007 14:52:43 -0400 Subject: Package the subprocess module so that we can use it on EL4. --- modules/virt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/virt.py') diff --git a/modules/virt.py b/modules/virt.py index d345d75..15be92c 100755 --- a/modules/virt.py +++ b/modules/virt.py @@ -22,7 +22,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # other modules import sys import os -import subprocess +import sub_process import libvirt # our modules @@ -44,7 +44,7 @@ class FuncLibvirtConnection(): def __init__(self): - cmd = subprocess.Popen("uname -r", shell=True, stdout=subprocess.PIPE) + cmd = sub_process.Popen("uname -r", shell=True, stdout=sub_process.PIPE) output = cmd.communicate()[0] if output.find("xen") != -1: @@ -188,7 +188,7 @@ class Virt(func_module.FuncModule): "--server=%s" % server_name ] - rc = subprocess.call(koan_args,shell=False) + rc = sub_process.call(koan_args,shell=False) if rc == 0: return 0 else: -- cgit