Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove compact function from grants as it prevents from iteration #5

Merged
merged 1 commit into from
Jan 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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