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

Commit

Permalink
includes:"TAGS" is required for DescribeServices
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
  • Loading branch information
ndeloof committed Jun 29, 2020
1 parent 843b350 commit f4361b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/amazon/sdk/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ func (s sdk) DescribeServices(ctx context.Context, cluster string, project strin
services, err := s.ECS.DescribeServicesWithContext(ctx, &ecs.DescribeServicesInput{
Cluster: aws.String(cluster),
Services: list.ServiceArns,
Include: aws.StringSlice([]string{"TAGS"}),
})
if err != nil {
return nil, err
Expand All @@ -375,8 +376,8 @@ func (s sdk) DescribeServices(ctx context.Context, cluster string, project strin
status = append(status, compose.ServiceStatus{
ID: *service.ServiceName,
Name: name,
Replicas: int(*services.Services[0].RunningCount),
Desired: int(*services.Services[0].DesiredCount),
Replicas: int(*service.RunningCount),
Desired: int(*service.DesiredCount),
})
}

Expand Down

0 comments on commit f4361b4

Please sign in to comment.