Skip to content
This repository was archived by the owner on Oct 9, 2020. It is now read-only.

Commit f4361b4

Browse files
committed
includes:"TAGS" is required for DescribeServices
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 843b350 commit f4361b4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/amazon/sdk/sdk.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ func (s sdk) DescribeServices(ctx context.Context, cluster string, project strin
353353
services, err := s.ECS.DescribeServicesWithContext(ctx, &ecs.DescribeServicesInput{
354354
Cluster: aws.String(cluster),
355355
Services: list.ServiceArns,
356+
Include: aws.StringSlice([]string{"TAGS"}),
356357
})
357358
if err != nil {
358359
return nil, err
@@ -375,8 +376,8 @@ func (s sdk) DescribeServices(ctx context.Context, cluster string, project strin
375376
status = append(status, compose.ServiceStatus{
376377
ID: *service.ServiceName,
377378
Name: name,
378-
Replicas: int(*services.Services[0].RunningCount),
379-
Desired: int(*services.Services[0].DesiredCount),
379+
Replicas: int(*service.RunningCount),
380+
Desired: int(*service.DesiredCount),
380381
})
381382
}
382383

0 commit comments

Comments
 (0)