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:
parent
adcebfef2e
commit
b114df9cff
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user