Skip to content

Commit

Permalink
fix: output condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro_velychko3 committed Apr 24, 2023
1 parent f486108 commit e403fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
output "id" {
value = length(azurerm_network_security_group.this[0].id) != 0 ? azurerm_network_security_group.this[0].id : ""
value = length(var.security_rules) != 0 ? azurerm_network_security_group.this[0].id : ""
description = "The ID of the Network Security Group"
}

0 comments on commit e403fcc

Please sign in to comment.