Skip to content

Commit

Permalink
fix syntax issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lalo-galvan committed Aug 21, 2024
1 parent c34e62a commit 014cdd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synthetics/browser/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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", null)
for_each = lookup(browser_step.value.params, "element_user_locator", {})
content {
value {
value = lookup(element_user_locator.value, "value", null)
Expand All @@ -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", null)
for_each = lookup(browser_step.value.params, "variable", {})
content {
example = lookup(variable.value, "example", null)
name = lookup(variable.value, "name", null)
Expand Down

0 comments on commit 014cdd5

Please sign in to comment.