Fix variable name

This commit is contained in:
Alarig Le Lay 2019-01-21 17:36:02 +01:00
parent c5d85d7e1c
commit c64603b284
1 changed files with 1 additions and 1 deletions

View File

@ -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/) 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') 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}" write_log FATAL "Wrong code returned for IPv4 range ${ID_RANGE_V6}: ${INFOS_RANGES_V6}"
exit 1 exit 1
fi fi