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 0d6f259adc
commit 8c53318dac

View file

@ -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 {