From eb1d1afdd6f472aa880aa74db392db9ed95a5ec9 Mon Sep 17 00:00:00 2001 From: nicholascwd <56076256+nicholascwd@users.noreply.github.com> Date: Thu, 28 Sep 2023 18:03:58 +0800 Subject: [PATCH] XDR-4687: Update processing of watchlist items property (patch) --- modules/sentinel-watchlist/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sentinel-watchlist/main.tf b/modules/sentinel-watchlist/main.tf index db1b7be..893e841 100644 --- a/modules/sentinel-watchlist/main.tf +++ b/modules/sentinel-watchlist/main.tf @@ -20,7 +20,7 @@ resource "azurerm_sentinel_watchlist" "watchlist" { } resource "azurerm_sentinel_watchlist_item" "watchlist_item" { - for_each = var.properties + for_each = { for index, elem in var.properties : index => elem } watchlist_id = azurerm_sentinel_watchlist.watchlist.id properties = each.value }