mirror of https://github.com/docker/compose.git
includes:"TAGS" is required for DescribeServices
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
934e7ab9ea
commit
d2911c1ea9
|
@ -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
|
||||
|
@ -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),
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue