Skip to content

Commit b1c05d1

Browse files
authored
fix: fixed loop
1 parent f7001f3 commit b1c05d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ resource "azurerm_subnet_network_security_group_association" "this" {
2424
count = var.nsg_association_enabled ? 1 : 0
2525

2626
subnet_id = var.export_subnet_id == null ? azurerm_subnet.this[0].id : var.export_subnet_id
27-
network_security_group_id = each.nsg_id
27+
network_security_group_id = var.nsg_id
2828
}

0 commit comments

Comments
 (0)