aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Zhang <jeffrey.zhang@99cloud.net>2016-02-10 21:31:48 +0800
committerJeffrey Zhang <jeffrey.zhang@99cloud.net>2016-02-10 21:31:48 +0800
commit7899d00c6f46f9d3b65c9284a8f70f4998e2415e (patch)
treeac3f3fed72311578a4879445d61cc096683c9950
parentb479d8db0357d9c72aa95fc0bdbd7c873878bb4d (diff)
downloadkolla-7899d00c6f46f9d3b65c9284a8f70f4998e2415e.tar.gz
kolla-7899d00c6f46f9d3b65c9284a8f70f4998e2415e.zip
Trap error exit in deploy aio script
This make sure the check_failure called whenever the script exits unexpectedly. TrivialFix Change-Id: If38e9ad42810deec48afd3f8b57387ae6ffd926c
-rwxr-xr-xtools/deploy_aio.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/deploy_aio.sh b/tools/deploy_aio.sh
index 7faad99b4..0b80c6ccf 100755
--- a/tools/deploy_aio.sh
+++ b/tools/deploy_aio.sh
@@ -19,6 +19,8 @@ function check_failure {
fi
}
+trap check_failure EXIT
+
# Populate globals.yml
cat << EOF > /etc/kolla/globals.yml
---
@@ -36,6 +38,4 @@ ip l a fake_interface type dummy
# Actually do the deployment
tools/kolla-ansible -vvv deploy
-check_failure
-
# TODO(SamYaple): Actually do functional testing of OpenStack