From ebdceef1f6fe5d86ffc144636cc83ced1850a2a3 Mon Sep 17 00:00:00 2001 From: Lalo Galvan <106835113+lalo-galvan@users.noreply.github.com> Date: Wed, 21 Aug 2024 12:51:29 -0600 Subject: [PATCH] fix syntax issue --- synthetics/browser/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synthetics/browser/main.tf b/synthetics/browser/main.tf index c79fff2..6fb06e3 100644 --- a/synthetics/browser/main.tf +++ b/synthetics/browser/main.tf @@ -37,7 +37,7 @@ resource "datadog_synthetics_test" "browser" { delay = lookup(browser_step.value.params, "delay", null) element = lookup(browser_step.value.params, "element", null) dynamic "element_user_locator" { - for_each = lookup(browser_step.value.params, "element_user_locator", {}) + for_each = lookup(browser_step.value.params, "element_user_locator", []) content { value { value = lookup(element_user_locator.value, "value", null) @@ -55,7 +55,7 @@ resource "datadog_synthetics_test" "browser" { subtest_public_id = lookup(browser_step.value.params, "subtest_public_id", null) value = lookup(browser_step.value.params, "value", null) dynamic "variable" { - for_each = lookup(browser_step.value.params, "variable", {}) + for_each = lookup(browser_step.value.params, "variable", []) content { example = lookup(variable.value, "example", null) name = lookup(variable.value, "name", null)