From 3706a48c4f8a263865d9a0006db7a17996fb6e55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20S=C3=BCssemilch=20Poulain?= Date: Wed, 8 Apr 2020 23:53:05 +0200 Subject: [PATCH] Terraform/OpenStack: Fix idempotency bug in module.network.openstack_networking_router_interface_v2.k8s[0] --- contrib/terraform/openstack/modules/network/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/terraform/openstack/modules/network/main.tf b/contrib/terraform/openstack/modules/network/main.tf index 2fd65cd5375..3b1f3986c1d 100644 --- a/contrib/terraform/openstack/modules/network/main.tf +++ b/contrib/terraform/openstack/modules/network/main.tf @@ -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}" }