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] (kubernetes-sigs#5914)
  • Loading branch information
qvicksilver authored and LuckySB committed Apr 18, 2020
1 parent 8c28b5d commit 3fa0e0c
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 3fa0e0c

Please sign in to comment.