summaryrefslogtreecommitdiffstats
path: root/deploy/check_os_progress.sh
diff options
context:
space:
mode:
authorAlex Yang <yangyang1@zte.com.cn>2017-03-11 23:52:14 +0800
committerAlex Yang <yangyang1@zte.com.cn>2017-03-11 23:52:14 +0800
commitc557362eb2a14055587feac228a4463bd96f6f4a (patch)
tree0070ca8412fc00532bd0e86df74f1a3df11ca4d1 /deploy/check_os_progress.sh
parent07eaa746cd8dd0a02a1d5f27e366ec389d3e1f93 (diff)
remove blanks from cluster_id
There are blanks at the head and the tail of $cluster_id. Then in https://build.opnfv.org/ci/job/daisy-deploy-virtual-daily-master/26/console there are error messages as "No such file or directory". Change-Id: Ia5d119df85d4f64fbc3a47705ccc208d7a67b2de Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
Diffstat (limited to 'deploy/check_os_progress.sh')
-rwxr-xr-xdeploy/check_os_progress.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy/check_os_progress.sh b/deploy/check_os_progress.sh
index 30226844..f76af9b6 100755
--- a/deploy/check_os_progress.sh
+++ b/deploy/check_os_progress.sh
@@ -35,7 +35,7 @@ do
done
source /root/daisyrc_admin
-cluster_id=`daisy cluster-list | awk -F "|" '{print $2}' | sed -n '4p'`
+cluster_id=`daisy cluster-list | awk -F "|" '{print $2}' | sed -n '4p' | tr -d " "`
hosts_id=`daisy host-list | awk -F "|" '{print $2}'| grep -o "[^ ]\+\( \+[^ ]\+\)*"|tail -n +2`
skip=false
if [ $deploy_env == 0 ];then