From 32c4e98d7bc800acf92be8053e5b008290617c3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Tue, 24 Oct 2023 14:22:08 +0200 Subject: [PATCH] fix --- share/division/groups.tf | 2 +- share/division/index.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/share/division/groups.tf b/share/division/groups.tf index d71c063..b0724b0 100644 --- a/share/division/groups.tf +++ b/share/division/groups.tf @@ -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 local.sorted-teams[count.index].apps: app => true}) + attributes = jsonencode({for app in lookup(local.sorted-teams[count.index],"apps", []): app => true}) } diff --git a/share/division/index.yaml b/share/division/index.yaml index adbecda..cc7e151 100644 --- a/share/division/index.yaml +++ b/share/division/index.yaml @@ -20,11 +20,6 @@ options: items: type: string type: array - domain: - default: your-company - examples: - - your-company - type: string teams: default: [] items: @@ -39,6 +34,11 @@ options: type: string type: object type: array + domain: + default: your-company + examples: + - your-company + type: string dependencies: - dist: null category: share