Skip to content

Commit

Permalink
Fixed an issue where the "identifier" attribute was being lost in the…
Browse files Browse the repository at this point in the history
… merge between managed rules config and overrides provided by the user
  • Loading branch information
bensonce committed Jun 13, 2024
1 parent ce02c5c commit 4c187bd
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit 4c187bd

Please sign in to comment.