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 rule overrides #48

Merged
merged 2 commits into from
Jun 14, 2024
Merged
Changes from 1 commit
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
5 changes: 4 additions & 1 deletion locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ locals {
rule if !contains(local.rules_exclude_collected, rule)
]

final_managed_rules = merge(local.managed_rules, var.rule_overrides)
final_managed_rules = {
for rule, attr in local.managed_rules :
rule => merge(attr, lookup(var.rule_overrides, rule, {}))
}

rules_to_apply = {
for rule, attr in local.final_managed_rules :
Expand Down
Loading