Commit 1097e192 authored by Vivek Ojha's avatar Vivek Ojha
Browse files

terraform format

parent bd95a320
Pipeline #60425 passed with stages
in 57 seconds
...@@ -18,7 +18,7 @@ data "azuread_service_principal" "main" { ...@@ -18,7 +18,7 @@ data "azuread_service_principal" "main" {
} }
resource "azuread_application" "main" { resource "azuread_application" "main" {
count = var.enable_bring_your_own_ad_app ? 0 : 1 count = var.enable_bring_your_own_ad_app ? 0 : 1
name = var.name name = var.name
homepage = coalesce(var.homepage, local.homepage) homepage = coalesce(var.homepage, local.homepage)
identifier_uris = local.identifier_uris identifier_uris = local.identifier_uris
...@@ -67,7 +67,7 @@ resource "random_password" "main" { ...@@ -67,7 +67,7 @@ resource "random_password" "main" {
resource "azuread_application_password" "main" { resource "azuread_application_password" "main" {
count = !var.enable_bring_your_own_ad_app && var.password != null ? 1 : 0 count = !var.enable_bring_your_own_ad_app && var.password != null ? 1 : 0
application_object_id = var.enable_bring_your_own_ad_app ? null : azuread_application.main[0].object_id application_object_id = var.enable_bring_your_own_ad_app ? null : azuread_application.main[0].object_id
value = coalesce(var.password, random_password.main[0].result) value = coalesce(var.password, random_password.main[0].result)
end_date = local.end_date end_date = local.end_date
......
...@@ -13,22 +13,22 @@ ...@@ -13,22 +13,22 @@
// limitations under the License. // limitations under the License.
output "name" { output "name" {
value = var.enable_bring_your_own_ad_app ? null : azuread_application.main[0].name value = var.enable_bring_your_own_ad_app ? null : azuread_application.main[0].name
description = "The display name of the application." description = "The display name of the application."
} }
output "id" { output "id" {
value = var.enable_bring_your_own_ad_app ? null : azuread_application.main[0].application_id value = var.enable_bring_your_own_ad_app ? null : azuread_application.main[0].application_id
description = "The ID of the application." description = "The ID of the application."
} }
output "object_id" { output "object_id" {
value = var.enable_bring_your_own_ad_app ? null : azuread_application.main[0].object_id value = var.enable_bring_your_own_ad_app ? null : azuread_application.main[0].object_id
description = "The object ID of the application." description = "The object ID of the application."
} }
output "roles" { output "roles" {
value = var.enable_bring_your_own_ad_app ? null : { value = var.enable_bring_your_own_ad_app ? null : {
for r in azuread_application.main[0].app_role : for r in azuread_application.main[0].app_role :
r.display_name => { r.display_name => {
id = r.id id = r.id
...@@ -42,7 +42,7 @@ output "roles" { ...@@ -42,7 +42,7 @@ output "roles" {
} }
output "password" { output "password" {
value = var.enable_bring_your_own_ad_app ? null : azuread_application_password.main.0.value value = var.enable_bring_your_own_ad_app ? null : azuread_application_password.main.0.value
sensitive = true sensitive = true
description = "The password for the application." description = "The password for the application."
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment