From e4e29855ad71a4aa1495829d25a2c061d1282f2e Mon Sep 17 00:00:00 2001 From: Khanh Tran <32532742+khanhtc1202@users.noreply.github.com> Date: Thu, 12 Oct 2023 10:25:40 +0700 Subject: [PATCH] Fix unable to rollout ECS first taskset (#4614) (#4615) Signed-off-by: khanhtc1202 --- pkg/app/piped/platformprovider/ecs/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/app/piped/platformprovider/ecs/client.go b/pkg/app/piped/platformprovider/ecs/client.go index ef559e6e33..3b16819f80 100644 --- a/pkg/app/piped/platformprovider/ecs/client.go +++ b/pkg/app/piped/platformprovider/ecs/client.go @@ -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{