Skip to content

Commit

Permalink
fix: ensure we always desire at least 1 task
Browse files Browse the repository at this point in the history
  • Loading branch information
paulswartz committed Jun 15, 2023
1 parent b30d875 commit fc34311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy-ecs/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function check_deployment_complete() {
deployment_details="${1}"

# get and print current task counts
desired_count="$(echo "${deployment_details}" | jq -r '.desiredCount')"
desired_count="$(echo "${deployment_details}" | jq -r '[.desiredCount, 1] | max')"
pending_count="$(echo "${deployment_details}" | jq -r '.pendingCount')"
running_count="$(echo "${deployment_details}" | jq -r '.runningCount')"
echo "Desired count: ${desired_count}"
Expand Down

0 comments on commit fc34311

Please sign in to comment.