Skip to content

Commit d620adf

Browse files
committed
Prevent OpenTofu from reverting binding attributes
After creating a Neutron port of baremetal VNIC type, OpenTofu wants to revert its profile to an empty dict even though it was populated with local_link_information.
1 parent 8167487 commit d620adf

File tree

1 file changed

+4
-0
lines changed
  • environments/skeleton/{{cookiecutter.environment}}/tofu/node_group

1 file changed

+4
-0
lines changed

environments/skeleton/{{cookiecutter.environment}}/tofu/node_group/nodes.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ resource "openstack_networking_port_v2" "compute" {
5151
vnic_type = lookup(var.vnic_types, each.value.network, "normal")
5252
profile = lookup(var.vnic_profiles, each.value.network, "{}")
5353
}
54+
55+
lifecycle {
56+
ignore_changes = [binding]
57+
}
5458
}
5559

5660
resource "openstack_compute_instance_v2" "compute_fixed_image" {

0 commit comments

Comments
 (0)