clean all virutal host before deploy 67/5067/1
authorcarey.xu <carey.xuhan@huawei.com>
Tue, 22 Dec 2015 12:02:07 +0000 (20:02 +0800)
committercarey.xu <carey.xuhan@huawei.com>
Tue, 22 Dec 2015 12:02:07 +0000 (20:02 +0800)
JIRA: COMPASS-212

Change-Id: If19bd069ae1fc8cfe565f1e1ed352f24b9fc3950
Signed-off-by: carey.xu <carey.xuhan@huawei.com>
deploy/launch.sh

index 9a223ec..273e27a 100755 (executable)
@@ -18,6 +18,11 @@ source ${COMPASS_DIR}/deploy/compass_vm.sh
 source ${COMPASS_DIR}/deploy/deploy_host.sh
 
 ######################### main process
+old_ifs=$IFS
+IFS=,
+tear_down_machines
+IFS=$old_ifs
+
 if [[ "$DEPLOY_STEP" == "compass_only" || "$DEPLOY_STEP" == "all" ]]
 then
 if ! prepare_env;then