This commit is contained in:
2023-10-24 14:49:58 +02:00
parent d9aaeef86d
commit 458c17cfbc
2 changed files with 11 additions and 11 deletions

View File

@@ -25,5 +25,5 @@ resource "authentik_group" "teams" {
count = length(local.sorted-teams)
name = "team-${var.instance}-${local.sorted-teams[count.index].name}"
parent = authentik_group.division.id
attributes = jsonencode({for app in lookup(local.sorted-teams[count.index],"apps", []): app => true})
attributes = jsonencode({for app in coalesce(lookup(local.sorted-teams[count.index],"apps", []), []): app => true})
}