From 8fd6be289cff5ee723804ae8c03c3de32f80d1bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ig=C5=82a?= Date: Thu, 19 Jan 2023 14:17:32 +0100 Subject: [PATCH] fix: Remove compact function from grants as it prevents from iteration (#5) --- locals.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/locals.tf b/locals.tf index ff8d29d..53fea13 100644 --- a/locals.tf +++ b/locals.tf @@ -5,9 +5,9 @@ locals { lookup(module.role_label.descriptors, var.descriptor_name, module.role_label.id), "/${module.role_label.delimiter}${module.role_label.delimiter}+/", module.role_label.delimiter ), module.role_label.delimiter) : null - granted_roles = compact(var.granted_roles) - granted_to_roles = compact(var.granted_to_roles) - granted_to_users = compact(var.granted_to_users) + granted_roles = var.granted_roles + granted_to_roles = var.granted_to_roles + granted_to_users = var.granted_to_users database_grants = merge([for database_grant in var.database_grants : { for privilege in database_grant.privileges : "${database_grant.database_name}/${privilege}" => {