Skip to content

Commit b0d6209

Browse files
authored
Merge pull request #6 from data-platform-hq/output-fix
fix: changed output
2 parents 0ec17ef + 9a3e1a1 commit b0d6209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

outputs.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ output "address_prefixes" {
1414
}
1515

1616
output "nsg_association_id" {
17-
value = azurerm_subnet_network_security_group_association.this[0].id
17+
value = var.nsg_id == null ? null : azurerm_subnet_network_security_group_association.this[0].id
1818
description = "The ID of the Network Security Group Association"
1919
}
2020

0 commit comments

Comments
 (0)