Skip to content

Commit

Permalink
Merge pull request #1882 from flender-group/fix/#1881-azurerm_eventhu…
Browse files Browse the repository at this point in the history
…b_namespace-network_rulesets

fix(azurerm_eventhub_namespace): fixing for_each reference
  • Loading branch information
arnaudlh authored Jan 5, 2024
2 parents 5ebb0a4 + 9d4b0f2 commit b9c6fbe
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 b9c6fbe

Please sign in to comment.