diff --git a/recipes/recipe_check_ipam_config.sh b/recipes/recipe_check_ipam_config.sh index 6e75ffb..26964bc 100755 --- a/recipes/recipe_check_ipam_config.sh +++ b/recipes/recipe_check_ipam_config.sh @@ -7,7 +7,7 @@ TOKEN=$(echo ${RES_AUTHENT} | jq -r '.data.token') # Check if IPAM API request succeded # If IPAM API connection FAILED -if [ ${CODE_RETOUR_RES_AUTHENT} != 200 ] || [ ! -n "${TOKEN}" ]; then +if [ "${CODE_RETOUR_RES_AUTHENT}" -ne 200 ] || [ ! -n "${TOKEN}" ]; then echo -e "${RED}Connection to IPAM API FAILED or empty TOKEN : check KO${NC}\n" # If IPAM API connection SUCCEDED