Skip to content

Commit

Permalink
feat(fetch_secret): Enable retry on failed credentials fetching (#29405)
Browse files Browse the repository at this point in the history
  • Loading branch information
chouetz committed Sep 17, 2024
1 parent eda71a7 commit da79543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/ci/fetch_secret.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ while [[ $retry_count -lt $max_retries ]]; do
if [[ "$error" =~ "Unable to locate credentials" ]]; then
# See 5th row in https://docs.google.com/spreadsheets/d/1JvdN0N-RdNEeOJKmW_ByjBsr726E3ZocCKU8QoYchAc
>&2 echo "Permanent error: unable to locate AWS credentials, not retrying"
exit 1
exit 42
fi
retry_count=$((retry_count+1))
sleep $((2**retry_count))
Expand Down

0 comments on commit da79543

Please sign in to comment.