jumppad icon indicating copy to clipboard operation
jumppad copied to clipboard

When a module contains a network with the same name, the unique name check does not consider the disabled flag

Open eveld opened this issue 4 months ago • 0 comments

I have a network in my local config e.g.

resource "network" "main" {
  subnet = "10.0.10.0/24"
}

If I then also have a network inside of a module that I am using e.g.

resource "network" "main" {
  disabled = true
  subnet = "10.0.10.0/24"
}

Jumppad complains that there is already a network with the name "main". This is because it tries to keep them unique for Docker network names. But if one of them is disabled, the name is technically still unique.

We should check the network resources, but ignore any that are disabled.

eveld avatar Oct 09 '24 06:10 eveld