mirror of
https://github.com/ansible/awx.git
synced 2026-03-28 22:35:08 -02:30
allow for 201 status_code from callback
This commit is contained in:
@@ -14,7 +14,7 @@ attempt=0
|
|||||||
while [[ $attempt -lt $retry_attempts ]]
|
while [[ $attempt -lt $retry_attempts ]]
|
||||||
do
|
do
|
||||||
status_code=`curl -s -i --data "host_config_key=$2" http://$1/api/v1/job_templates/$3/callback/ | head -n 1 | awk '{print $2}'`
|
status_code=`curl -s -i --data "host_config_key=$2" http://$1/api/v1/job_templates/$3/callback/ | head -n 1 | awk '{print $2}'`
|
||||||
if [[ $status_code == 202 ]]
|
if [[ $status_code == 202 || $status_code == 201 ]]
|
||||||
then
|
then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user