diff options
author | John Eckersberg <jeckersb@redhat.com> | 2008-01-29 20:50:46 -0500 |
---|---|---|
committer | John Eckersberg <jeckersb@redhat.com> | 2008-01-29 20:50:46 -0500 |
commit | 51560dfdd4c80663a39a5adc48c60ea1bcab3592 (patch) | |
tree | 40edc805711e11cbf0f1d1dd8c5aa9aa88a903db /func/minion/modules | |
parent | bd10c846b56453b3eff561b8ee4eb5a8802868fc (diff) | |
download | func-51560dfdd4c80663a39a5adc48c60ea1bcab3592.tar.gz func-51560dfdd4c80663a39a5adc48c60ea1bcab3592.tar.xz func-51560dfdd4c80663a39a5adc48c60ea1bcab3592.zip |
use func's sub_process instead of system-level for python 2.3 compatibility
Diffstat (limited to 'func/minion/modules')
-rw-r--r-- | func/minion/modules/netapp/common.py | 10 |
1 files changed, 5 insertions, 5 deletions
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) |