Skip to content

Commit 52e2a39

Browse files
committed
fix: fix output
1 parent 4b6b20d commit 52e2a39

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

outputs.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
output "id" {
2-
value = azurerm_static_site.this.id
2+
value = azurerm_static_site.this.id
33
description = "The ID of the Static Site."
44
}
55

66
output "api_key" {
7-
value = azurerm_static_site.this.api_key
7+
value = azurerm_static_site.this.api_key
88
description = "The API Key of the Static Site."
99
}
1010

1111
output "default_host_name" {
12-
value = azurerm_static_site.this.default_host_name
12+
value = azurerm_static_site.this.default_host_name
1313
description = "The Default Host Name of the Static Site."
1414
}
1515

1616
output "identity" {
17-
value = azurerm_static_site.this.identity[*]
17+
value = azurerm_static_site.this.identity[*]
1818
description = "The Managed Identity of the Static Site."
1919
}
2020

2121
output "custom_domain_id" {
22-
value = azurerm_static_site_custom_domain.this[*].id
22+
value = azurerm_static_site_custom_domain.this[*].id
2323
description = "The ID of the Custom Domain."
2424
}
2525

2626
output "validation_token" {
27-
value = azurerm_static_site_custom_domain.this[*].validation_token
27+
value = var.validation_type == "dns-txt-token" ? azurerm_static_site_custom_domain.this[*].validation_token : null
2828
description = "The Validation Token of the Custom Domain."
2929
}

0 commit comments

Comments
 (0)