[deploy] Collect logs only if cluster is deployed 41/62741/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 21 Sep 2018 14:50:13 +0000 (16:50 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 21 Sep 2018 18:23:17 +0000 (18:23 +0000)
Change-Id: Iaa60008e234a506b05e7b5249c85fd1d6fa63d56
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 6113e8019274c8a0c1eb4b7a49353ecbbd47dcfe)

ci/deploy.sh

index 3a0f9f9..5fb8c43 100755 (executable)
@@ -338,9 +338,9 @@ else
             reset_vms "${virtual_nodes[@]}"
         fi
     done
-fi
 
-./log.sh "${DEPLOY_LOG}"
+    ./log.sh "${DEPLOY_LOG}"
+fi
 
 popd > /dev/null