Skip to content

Commit

Permalink
updated 'happy path' ternary option for dynamic network acls block
Browse files Browse the repository at this point in the history
bools can't be iterated over, so `private_networking.enabled` can't be an option for the for each array. changed it to the full `private_networking` object.
  • Loading branch information
Tanchwa authored Feb 9, 2024
1 parent 9c8fe62 commit 009261e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Terraform/Modules/Azure_Openai/azure_openai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resource "azurerm_cognitive_account" "main" {
custom_subdomain_name = var.cog_account_name

dynamic "network_acls" {
for_each = try(var.private_networking.enabled, true) ? [var.private_networking.enabled] : []
for_each = try(var.private_networking.enabled, true) ? [var.private_networking] : []

content {
default_action = "Deny"
Expand Down

0 comments on commit 009261e

Please sign in to comment.