From 2ba3ce0f5dffff76ea6b38e80362c7a93c98813d Mon Sep 17 00:00:00 2001 From: Alex Trull Date: Sun, 19 Nov 2023 23:14:39 +0100 Subject: [PATCH] fix(merging) concat does a better job of tuples and lists than coalesce does (#6) --- 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/", ""))