From c64603b284377b2791da59438fa12d08a90a94e7 Mon Sep 17 00:00:00 2001 From: alarig Date: Mon, 21 Jan 2019 17:36:02 +0100 Subject: [PATCH] Fix variable name --- creationRoutesVM.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/creationRoutesVM.sh b/creationRoutesVM.sh index 7efbf5f..633490c 100755 --- a/creationRoutesVM.sh +++ b/creationRoutesVM.sh @@ -137,7 +137,7 @@ if [ ${FEED_CACHE} = 1 ]; then INFOS_RANGES_V6=$(${CURL} --header "Content-type: application/x-www-form-urlencoded" --header "token: $TOKEN" -X GET ${URL}/subnets/${ID_RANGE_V6}/slaves/) CODE_RETOUR_INFOS_RANGES_V6=$(echo ${INFOS_RANGES_V6} | jq '.code') - if [ ${INFOS_RANGES_V6} != 200 ]; then + if [ ${CODE_RETOUR_INFOS_RANGES_V6} != 200 ]; then write_log FATAL "Wrong code returned for IPv4 range ${ID_RANGE_V6}: ${INFOS_RANGES_V6}" exit 1 fi