Skip to content

Commit

Permalink
fix: Remove compact function from grants as it prevents from iteration (
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubigla authored Jan 19, 2023
1 parent 1faa08f commit 8fd6be2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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}" => {
Expand Down

0 comments on commit 8fd6be2

Please sign in to comment.