Skip to content

Commit

Permalink
Response code
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Sloane committed Nov 26, 2019
1 parent 1039b50 commit 396f8ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ STATUS_CODE=$(curl -s \
}")

# Validate status code
if [[ "${STATUS_CODE}" != "201" ]]; then
if [[ "${STATUS_CODE}" != "200" ]] && [[ "${STATUS_CODE}" != "201" ]] && [[ "${STATUS_CODE}" != "202" ]]; then
echo "ERROR: HTTP response code ${STATUS_CODE} received, expected HTTP 201"
exit 1
fi

0 comments on commit 396f8ac

Please sign in to comment.