From 250c0723e9e882a72e96178aa800e03350c52e29 Mon Sep 17 00:00:00 2001 From: Zhijiang Hu Date: Sat, 11 Nov 2017 09:47:50 +0000 Subject: [PATCH] Revert "Direct prepare.sh log into log file" This partial reverts commit 35095c89b3a848a7f1029e89648c66341397c37c. Change-Id: Ibe2fa186b00817daf69bfdf1a3899bb291d308d0 --- code/daisy/daisy/api/backends/kolla/install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/daisy/daisy/api/backends/kolla/install.py b/code/daisy/daisy/api/backends/kolla/install.py index 0c70eb33..4ec8e76a 100755 --- a/code/daisy/daisy/api/backends/kolla/install.py +++ b/code/daisy/daisy/api/backends/kolla/install.py @@ -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)