Skip to content

Commit fea5689

Browse files
committed
Forget to update status check variable
1 parent 876abac commit fea5689

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

azure/templates/sandbox-post-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ steps:
3434
3535
counter=0
3636
while [[ $counter -lt 31 ]]; do
37-
response=$(curl -H "apikey: $(status-endpoint-api-key)" -s "$endpoint")
37+
response=$(curl -H "apikey: $(status-endpoint-api-key)" -s "$status_endpoint")
3838
response_code=$(jq -r '.checks.healthcheck.responseCode' <<< "$response")
3939
response_body=$(jq -r '.checks.healthcheck.outcome' <<< "$response")
4040
status=$(jq -r '.status' <<< "$response")
4141
if [ "$response_code" -eq 200 ] && [ "$response_body" == "OK" ] && [ "$status" == "pass" ]; then
4242
echo "Status test successful"
4343
break
4444
else
45-
echo "Waiting for $endpoint to return a 200 response with 'OK' body..."
45+
echo "Waiting for $status_endpoint to return a 200 response with 'OK' body..."
4646
((counter=counter+1)) # Increment counter by 1
4747
echo "Attempt $counter"
4848
sleep 30

0 commit comments

Comments
 (0)