mirror of
https://github.com/docker/compose.git
synced 2025-07-20 20:24:30 +02:00
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{
|
services, err := s.ECS.DescribeServicesWithContext(ctx, &ecs.DescribeServicesInput{
|
||||||
Cluster: aws.String(cluster),
|
Cluster: aws.String(cluster),
|
||||||
Services: list.ServiceArns,
|
Services: list.ServiceArns,
|
||||||
|
Include: aws.StringSlice([]string{"TAGS"}),
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@ -375,8 +376,8 @@ func (s sdk) DescribeServices(ctx context.Context, cluster string, project strin
|
|||||||
status = append(status, compose.ServiceStatus{
|
status = append(status, compose.ServiceStatus{
|
||||||
ID: *service.ServiceName,
|
ID: *service.ServiceName,
|
||||||
Name: name,
|
Name: name,
|
||||||
Replicas: int(*services.Services[0].RunningCount),
|
Replicas: int(*service.RunningCount),
|
||||||
Desired: int(*services.Services[0].DesiredCount),
|
Desired: int(*service.DesiredCount),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user