Skip to content

Commit

Permalink
Fix proximity placement group ID assignment in infrastructure.tf to h…
Browse files Browse the repository at this point in the history
…andle potential null values
  • Loading branch information
Kimmo Forss committed Dec 31, 2024
1 parent e687ac3 commit 74722d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ resource "azurerm_availability_set" "app" {
resource_group_name = var.resource_group[0].name
platform_update_domain_count = 20
platform_fault_domain_count = local.faultdomain_count
proximity_placement_group_id = var.ppg[count.index]
proximity_placement_group_id = try(var.ppg[count.index], null)
managed = true
tags = var.tags
}
Expand Down

0 comments on commit 74722d3

Please sign in to comment.