Skip to content

Commit

Permalink
fix: output null if identity not configured (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
hknutsen authored Jan 13, 2023
1 parent cff7fdc commit f741a22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/app/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ output "name" {

output "identity_principal_id" {
description = "The principal ID of the system-assigned identity of this Web App."
value = var.identity != null ? local.web_app.identity[0].principal_id : null
value = try(local.web_app.identity[0].principal_id, null)
}

output "identity_tenant_id" {
description = "The tenant ID of the system-assigned identity of this Web App."
value = var.identity != null ? local.web_app.identity[0].tenant_id : null
value = try(local.web_app.identity[0].tenant_id, null)
}

0 comments on commit f741a22

Please sign in to comment.