changes in the script
This commit is contained in:
parent
e266fb5389
commit
b0031a7f4d
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
. /usr/lib/nagios/plugins/utils.sh
|
||||||
|
|
||||||
|
|
||||||
exec_status=$(curl -s https://api.swedenconnect.se/testid/prod/execution-status | jq --raw-output .)
|
exec_status=$(curl -s https://api.swedenconnect.se/testid/prod/execution-status | jq --raw-output .)
|
||||||
|
|
||||||
|
@ -75,9 +77,9 @@ then
|
||||||
elif [ -z "${lands[*]}" ]
|
elif [ -z "${lands[*]}" ]
|
||||||
then
|
then
|
||||||
echo "Tests on production lands are error free"
|
echo "Tests on production lands are error free"
|
||||||
|
exit $STATE_OK
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "${lands[*]} failing"
|
echo "${lands[*]} failing"
|
||||||
|
exit $STATE_OK
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue