Skip to content

Commit

Permalink
fix: Handle error with describe tasks in ECS
Browse files Browse the repository at this point in the history
  • Loading branch information
qbart committed Mar 19, 2024
1 parent 0a0f6c0 commit fd9c275
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions awscmd/ecs.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ func EcsDeploy(ctx context.Context, input *InputEcsDeploy, w io.Writer) (*OuputE
}

taskDef, err := ecsTaskDefinitionFromService(svc, ctx, input.Cluster, input.Service, w)
if err != nil {
return nil, err
}
taskName := *taskDef.Family

fmt.Fprintf(w, "Registering new task [%s]\n", idOneOff(taskName, ""))
Expand Down

0 comments on commit fd9c275

Please sign in to comment.