From 15e3e53dcbe395669d3008ea8500d615a7436dc4 Mon Sep 17 00:00:00 2001 From: Rupal Sharma Date: Mon, 19 Feb 2024 17:55:39 +0530 Subject: [PATCH] fix:change in count condition --- outputs.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/outputs.tf b/outputs.tf index 4339e74..1e9e548 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,9 +1,9 @@ output "dns_name" { - value = azurerm_bastion_host.main[0].dns_name + value = try(azurerm_bastion_host.main[0].dns_name, null) description = "Specifies the name of the bastion host" } output "id" { - value = azurerm_bastion_host.main[0].id + value = try(azurerm_bastion_host.main[0].id, null) description = "Specifies the resource id of the bastion host" }