Skip to content

Commit

Permalink
fix:change in count condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Rupalgw committed Feb 28, 2024
1 parent 92b9e26 commit 8dc2b50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ output "postgresql_flexible_server_id" {
}

output "azurerm_private_dns_zone_virtual_network_link_id" {
value = try(var.private_dns ? azurerm_private_dns_zone_virtual_network_link.main[0].id : null, null)
value = try(azurerm_private_dns_zone_virtual_network_link.main[0].id, null)
description = "The ID of the Private DNS Zone Virtual Network Link."
}

output "existing_private_dns_zone_virtual_network_link_id" {
value = var.private_dns && var.existing_private_dns_zone ? azurerm_private_dns_zone_virtual_network_link.main2[0].id : null
value = try(azurerm_private_dns_zone_virtual_network_link.main2[0].id, null)
description = "The ID of the Private DNS Zone Virtual Network Link."
}

output "azurerm_private_dns_zone_id" {
value = try(var.private_dns ? azurerm_private_dns_zone.main[0].id : null, null)
value = try(azurerm_private_dns_zone.main[0].id, null)
description = "The Private DNS Zone ID."
}
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ variable "resource_group_name" {

variable "enabled" {
type = bool
description = "Set to false to prevent the module from creating any resources."
default = true
description = "Set to false to prevent the module from creating any resources."
}

variable "existing_private_dns_zone" {
Expand Down

0 comments on commit 8dc2b50

Please sign in to comment.