From b114df9cff148cc93ee7a855ef20616f67adde3a Mon Sep 17 00:00:00 2001 From: Petr Blaho Date: Wed, 7 Jun 2017 17:54:39 +0200 Subject: [PATCH] Adds 'exit 1' to validate-overcloud-ipmi-connection template This makes that script to return 1 when validation fails. Change-Id: Ia1e307c82b24fd79360cebcda4d73e190cc1bd36 --- .../templates/validate-overcloud-ipmi-connection.sh.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/validate-ipmi/templates/validate-overcloud-ipmi-connection.sh.j2 b/roles/validate-ipmi/templates/validate-overcloud-ipmi-connection.sh.j2 index 9fb3756c1..79acd4c09 100644 --- a/roles/validate-ipmi/templates/validate-overcloud-ipmi-connection.sh.j2 +++ b/roles/validate-ipmi/templates/validate-overcloud-ipmi-connection.sh.j2 @@ -12,7 +12,7 @@ set -eux if [[ ! -f {{ working_dir }}/instackenv.json ]]; then echo 'File "instackenv.json" is not in the working directory, aborting.' - exit + exit 1 fi ## * Install IPMI tools @@ -33,6 +33,7 @@ export IPMI_VALIDATE="$(python {{ working_dir }}/clapper/instackenv-validator.py if [[ $IPMI_VALIDATE != *SUCCESS* ]] ; then echo "instackenv.json did not validate." echo $IPMI_VALIDATE + exit 1 fi ### --stop_docs