From 51560dfdd4c80663a39a5adc48c60ea1bcab3592 Mon Sep 17 00:00:00 2001 From: John Eckersberg Date: Tue, 29 Jan 2008 20:50:46 -0500 Subject: use func's sub_process instead of system-level for python 2.3 compatibility --- func/minion/modules/netapp/common.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'func') diff --git a/func/minion/modules/netapp/common.py b/func/minion/modules/netapp/common.py index d2fd3f2..ebe75ab 100644 --- a/func/minion/modules/netapp/common.py +++ b/func/minion/modules/netapp/common.py @@ -13,7 +13,7 @@ ## import re -import subprocess +import sub_process SSH = '/usr/bin/ssh' SSH_USER = 'root' @@ -26,11 +26,11 @@ def ssh(host, cmdargs, input=None, user=SSH_USER): cmdline = [SSH, SSH_OPTS, "%s@%s" % (user, host)] cmdline.extend(cmdargs) - cmd = subprocess.Popen(cmdline, + cmd = sub_process.Popen(cmdline, executable=SSH, - stdin=subprocess.PIPE, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE, + stdin=sub_process.PIPE, + stdout=sub_process.PIPE, + stderr=sub_process.PIPE, shell=False) (out, err) = cmd.communicate(input) -- cgit