Skip to content

Commit

Permalink
fix(azurerm_eventhub_namespace): fixing for_each reference
Browse files Browse the repository at this point in the history
  • Loading branch information
arne21a committed Dec 1, 2023
1 parent 4d9f5a0 commit 9d4b0f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/event_hubs/namespaces/event_hub_namespaces.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ resource "azurerm_eventhub_namespace" "evh" {
trusted_service_access_enabled = try(network_rulesets.value.trusted_service_access_enabled, null)

dynamic "virtual_network_rule" {
for_each = try(var.settings.network_rulesets.virtual_network_rule, {})
for_each = try(network_rulesets.value.virtual_network_rule, {})
content {
subnet_id = virtual_network_rule.value.subnet_id
ignore_missing_virtual_network_service_endpoint = try(virtual_network_rule.value.ignore_missing_virtual_network_service_endpoint, null)
}
}

dynamic "ip_rule" {
for_each = try(var.settings.network_rulesets.ip_rule, {})
for_each = try(network_rulesets.value.ip_rule, {})
content {
ip_mask = ip_rule.value.ip_mask
action = try(ip_rule.value.action, null)
Expand Down

0 comments on commit 9d4b0f2

Please sign in to comment.