This commit is contained in:
2023-10-15 13:42:58 +02:00
parent f26d17fe79
commit ace83c6b30
3 changed files with 188 additions and 185 deletions

View File

@@ -2,7 +2,10 @@ locals {
sorted-organisation-names = reverse(distinct(sort([for org in var.organisations: org.name])))
sorted-organisations = flatten([
for name in local.sorted-organisation-names: [
for org in var.organisations: org if org.name == name
for org in var.organisations: merge({
"stages" = []
"datasets" = []
}, org) if org.name == name
]
])
}