Browse Source

Update IPAM recipe

master
nemo 3 years ago
parent
commit
fbbee76976
  1. 2
      recipes/recipe_check_ipam_config.sh

2
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

Loading…
Cancel
Save