From 376276e16e0a6e12f5ef22c23ef300d18b1cb536 Mon Sep 17 00:00:00 2001 From: Alex Trull Date: Sun, 19 Nov 2023 23:13:35 +0100 Subject: [PATCH] fix(merging) concat does a better job of tuples and lists than coalesce does --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index c8c12e9..3f25c1f 100644 --- a/main.tf +++ b/main.tf @@ -60,7 +60,7 @@ locals { http_responses = var.data_provider == "http" ? values(data.http.myip)[*].response_body : [] # build a list of responses - service_response_bodies = coalesce(local.external_curl_responses, local.curl2_responses, local.http_responses) + service_response_bodies = concat(local.external_curl_responses, local.curl2_responses, local.http_responses) # remunge it without whitespace as a list of strings split_output = split(",", replace(trimspace(join(",", local.service_response_bodies)), "/\\s/", ""))