summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorAlex Yang <yangyang1@zte.com.cn>2017-09-29 17:29:08 +0800
committerAlex Yang <yangyang1@zte.com.cn>2017-09-29 17:29:08 +0800
commit5923e6dd685a9efd9e87b1e2fe4bd538e6fb0ac6 (patch)
tree5534743955975380caddda2229c8474e7b3e55a4 /deploy
parentaf5ccd55863bd86f4ea6e71a161e2ffd5c964bdc (diff)
Exit deploy when exception occurred
Exception occurred in [1]. But te deployment didn't stop and blocked for a long time. [1] https://build.opnfv.org/ci/job/daisy-deploy-baremetal-daily-master/169/ Change-Id: I0d5639da1e0d011855df0b0651328f11168e5d01 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
Diffstat (limited to 'deploy')
-rw-r--r--deploy/tempest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/deploy/tempest.py b/deploy/tempest.py
index 916ebad5..89411f3f 100644
--- a/deploy/tempest.py
+++ b/deploy/tempest.py
@@ -138,6 +138,7 @@ def prepare_install():
except Exception:
print("Deploy failed!!!.%s." % traceback.format_exc())
+ sys.exit(1)
else:
print_bar("Everything is done!")