Skip to content

Commit

Permalink
Revert "Fix openstack_compute_floatingip_associate_v2 deprecation"
Browse files Browse the repository at this point in the history
This reverts commit ea548db.
  • Loading branch information
mboisson committed Sep 25, 2024
1 parent c2e8603 commit 6548276
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openstack/network-1.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ resource "openstack_networking_floatingip_v2" "fip" {
pool = data.openstack_networking_network_v2.ext_network.name
}

resource "openstack_networking_floatingip_associate_v2" "fip" {
resource "openstack_compute_floatingip_associate_v2" "fip" {
for_each = { for x, values in module.design.instances : x => true if contains(values.tags, "public") }
floating_ip = local.public_ip[each.key]
port_id = openstack_networking_port_v2.nic[each.key].id
instance_id = openstack_compute_instance_v2.instances[each.key].id
}

locals {
Expand All @@ -37,5 +37,5 @@ locals {
if contains(values.tags, "public") && !contains(keys(var.os_floating_ips), x) }
)
ext_networks = []
network_provision_dep = openstack_networking_floatingip_associate_v2.fip
network_provision_dep = openstack_compute_floatingip_associate_v2.fip
}

0 comments on commit 6548276

Please sign in to comment.