mirror of https://github.com/docker/compose.git
improve error message for unsupported resource combination
Signed-off-by: aiordache <anca.iordache@docker.com> Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
ce3ab38e61
commit
94671e99e1
|
@ -167,7 +167,7 @@ services:
|
|||
memory: 2043248M
|
||||
`)
|
||||
_, err := Backend{}.Convert(model)
|
||||
assert.ErrorContains(t, err, "unable to find cpu/mem for the required resources")
|
||||
assert.ErrorContains(t, err, "The resources requested are not supported by ECS/Fargate")
|
||||
}
|
||||
|
||||
func TestLoadBalancerTypeNetwork(t *testing.T) {
|
||||
|
|
|
@ -159,7 +159,7 @@ func toLimits(service types.ServiceConfig) (string, string, error) {
|
|||
}
|
||||
}
|
||||
}
|
||||
return "", "", fmt.Errorf("unable to find cpu/mem for the required resources")
|
||||
return "", "", fmt.Errorf("The resources requested are not supported by ECS/Fargate")
|
||||
}
|
||||
|
||||
func toContainerReservation(service types.ServiceConfig) (string, int, error) {
|
||||
|
|
Loading…
Reference in New Issue