Revert "Direct prepare.sh log into log file"

This partial reverts commit 35095c89b3.

Change-Id: Ibe2fa186b00817daf69bfdf1a3899bb291d308d0
This commit is contained in:
Zhijiang Hu 2017-11-11 09:47:50 +00:00
parent 35095c89b3
commit 250c0723e9

View File

@ -323,7 +323,7 @@ def _thread_bin(req, cluster_id, host, root_passwd, fp, host_name_ip_list,
'ssh -o StrictHostKeyChecking='
'no %s %s/prepare.sh %s' %
(host_ip, host_prepare_file, docker_registry_ip),
shell=True, stdout=fp, stderr=fp)
shell=True, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
message = "exec prepare.sh on %s failed!", host_ip
LOG.error(message)