From 38e6517fb28898f660c88ce2b7454ab686ceff88 Mon Sep 17 00:00:00 2001 From: Julio Castillo Date: Mon, 19 Feb 2024 22:33:24 +0100 Subject: [PATCH] Fix #2095 for regional load balancers (#2097) --- modules/net-lb-app-ext-regional/urlmap.tf | 2 +- modules/net-lb-app-int-cross-region/urlmap.tf | 2 +- modules/net-lb-app-int/urlmap.tf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/net-lb-app-ext-regional/urlmap.tf b/modules/net-lb-app-ext-regional/urlmap.tf index 2cc7abdede..e305918d08 100644 --- a/modules/net-lb-app-ext-regional/urlmap.tf +++ b/modules/net-lb-app-ext-regional/urlmap.tf @@ -432,7 +432,7 @@ resource "google_compute_region_url_map" "default" { } } dynamic "route_rules" { - for_each = toset(coalesce(m.value.route_rules, [])) + for_each = coalesce(m.value.route_rules, []) content { priority = route_rules.value.priority service = route_rules.value.service == null ? null : lookup( diff --git a/modules/net-lb-app-int-cross-region/urlmap.tf b/modules/net-lb-app-int-cross-region/urlmap.tf index 93c4e14d5f..753fcc6131 100644 --- a/modules/net-lb-app-int-cross-region/urlmap.tf +++ b/modules/net-lb-app-int-cross-region/urlmap.tf @@ -271,7 +271,7 @@ resource "google_compute_url_map" "default" { } } dynamic "route_rules" { - for_each = toset(coalesce(m.value.route_rules, [])) + for_each = coalesce(m.value.route_rules, []) content { priority = route_rules.value.priority service = route_rules.value.service == null ? null : lookup( diff --git a/modules/net-lb-app-int/urlmap.tf b/modules/net-lb-app-int/urlmap.tf index 21f7e59723..3fd01270be 100644 --- a/modules/net-lb-app-int/urlmap.tf +++ b/modules/net-lb-app-int/urlmap.tf @@ -272,7 +272,7 @@ resource "google_compute_region_url_map" "default" { } } dynamic "route_rules" { - for_each = toset(coalesce(m.value.route_rules, [])) + for_each = coalesce(m.value.route_rules, []) content { priority = route_rules.value.priority service = route_rules.value.service == null ? null : lookup(