Skip to content

Commit

Permalink
Terraform/OpenStack: Fix idempotency bug in module.network.openstack_…
Browse files Browse the repository at this point in the history
…networking_router_interface_v2.k8s[0] (#5914)
  • Loading branch information
qvicksilver authored Apr 9, 2020
1 parent 980aeaf commit 2e67289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/terraform/openstack/modules/network/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ resource "openstack_networking_subnet_v2" "k8s" {

resource "openstack_networking_router_interface_v2" "k8s" {
count = "${var.use_neutron}"
router_id = "%{if openstack_networking_router_v2.k8s != []}${openstack_networking_router_v2.k8s[count.index].id} %{else}${var.router_id} %{endif}"
router_id = "%{if openstack_networking_router_v2.k8s != []}${openstack_networking_router_v2.k8s[count.index].id}%{else}${var.router_id}%{endif}"
subnet_id = "${openstack_networking_subnet_v2.k8s[count.index].id}"
}

0 comments on commit 2e67289

Please sign in to comment.