From 8c53318dacf1b03f66ad50dfb12968b29756dcbe Mon Sep 17 00:00:00 2001 From: Maarten van der Hoef Date: Mon, 21 Jan 2019 17:00:07 +0100 Subject: [PATCH] Generic awsvpc support, not just Fargate --- old/provider/ecs/ecs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/old/provider/ecs/ecs.go b/old/provider/ecs/ecs.go index 32dccc3dd..21dc4574b 100644 --- a/old/provider/ecs/ecs.go +++ b/old/provider/ecs/ecs.go @@ -287,7 +287,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 {