From fbbee769763f20ad4335780bc77bd36fb9a4d026 Mon Sep 17 00:00:00 2001 From: nemo Date: Sat, 29 Jun 2019 12:30:40 +0200 Subject: [PATCH] Update IPAM recipe --- recipes/recipe_check_ipam_config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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