Trap error exit in deploy aio script

This make sure the check_failure called whenever the script exits
unexpectedly.

TrivialFix

Change-Id: If38e9ad42810deec48afd3f8b57387ae6ffd926c
This commit is contained in:
Jeffrey Zhang 2016-02-10 21:31:48 +08:00
parent b479d8db03
commit 7899d00c6f

View File

@ -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