Skip to content

Commit

Permalink
Fix unable to rollout ECS first taskset (pipe-cd#4614)
Browse files Browse the repository at this point in the history
Signed-off-by: khanhtc1202 <[email protected]>
  • Loading branch information
khanhtc1202 authored and sZma5a committed Nov 5, 2023
1 parent 3412157 commit 148dddb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/app/piped/platformprovider/ecs/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,9 @@ func (c *client) GetServiceTaskSets(ctx context.Context, service types.Service)
activeTaskSetArns = append(activeTaskSetArns, *svc.TaskSets[i].TaskSetArn)
}

// No primary or active task set found.
if len(activeTaskSetArns) == 0 {
return nil, fmt.Errorf("failed to get task sets of service %s: services empty", *service.ServiceName)
return []*types.TaskSet{}, nil
}

tsInput := &ecs.DescribeTaskSetsInput{
Expand Down

0 comments on commit 148dddb

Please sign in to comment.