mirror of
https://github.com/traefik/traefik.git
synced 2026-05-05 20:36:20 +02:00
Adjust ECS network interface detection logic
This commit is contained in:
parent
1a266c661a
commit
4e11bf3c38
@ -314,7 +314,7 @@ func (p *Provider) listInstances(ctx context.Context, client *awsClient) ([]ecsI
|
||||
}
|
||||
|
||||
var mach *machine
|
||||
if len(task.Attachments) != 0 {
|
||||
if aws.StringValue(taskDef.NetworkMode) == "awsvpc" && len(task.Attachments) != 0 {
|
||||
if len(container.NetworkInterfaces) == 0 {
|
||||
logger.Errorf("Skip container %s: no network interfaces", aws.StringValue(container.Name))
|
||||
continue
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user