Update IPAM recipe
This commit is contained in:
parent
dcdefa4e37
commit
fbbee76976
|
@ -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…
Reference in a new issue