Skip to content

Commit 9a3e1a1

Browse files
author
dmytro_velychko3
committed
fix: changed output
1 parent 0ec17ef commit 9a3e1a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

outputs.tf

Lines changed: 1 addition & 1 deletion
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)