Adds 'exit 1' to validate-overcloud-ipmi-connection template

This makes that script to return 1 when validation fails.

Change-Id: Ia1e307c82b24fd79360cebcda4d73e190cc1bd36
This commit is contained in:
Petr Blaho 2017-06-07 17:54:39 +02:00
parent adcebfef2e
commit b114df9cff
No known key found for this signature in database
GPG Key ID: 7B33989C79E8E16C

View File

@ -12,7 +12,7 @@ set -eux
if [[ ! -f {{ working_dir }}/instackenv.json ]]; then if [[ ! -f {{ working_dir }}/instackenv.json ]]; then
echo 'File "instackenv.json" is not in the working directory, aborting.' echo 'File "instackenv.json" is not in the working directory, aborting.'
exit exit 1
fi fi
## * Install IPMI tools ## * Install IPMI tools
@ -33,6 +33,7 @@ export IPMI_VALIDATE="$(python {{ working_dir }}/clapper/instackenv-validator.py
if [[ $IPMI_VALIDATE != *SUCCESS* ]] ; then if [[ $IPMI_VALIDATE != *SUCCESS* ]] ; then
echo "instackenv.json did not validate." echo "instackenv.json did not validate."
echo $IPMI_VALIDATE echo $IPMI_VALIDATE
exit 1
fi fi
### --stop_docs ### --stop_docs