Generic awsvpc support, not just Fargate

This commit is contained in:
Maarten van der Hoef
2019-01-21 17:00:07 +01:00
committed by Traefiker Bot
parent b52b0f58b9
commit 40b8a93930

View File

@@ -293,7 +293,7 @@ func (p *Provider) listInstances(ctx context.Context, client *awsClient) ([]ecsI
}
var mach *machine
if aws.StringValue(task.LaunchType) == ecs.LaunchTypeFargate {
if len(task.Attachments) != 0 {
var ports []portMapping
for _, mapping := range containerDefinition.PortMappings {
if mapping != nil {