Skip to content

Commit

Permalink
Fixes type consistency error
Browse files Browse the repository at this point in the history
  • Loading branch information
sruffilli committed Oct 25, 2023
1 parent 5af9ef9 commit d6dff6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dns-response-policy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

locals {
_factory_rules = var.rules_file != null ? yamldecode(file(var.rules_file)) : {}
_factory_rules = var.rules_file != null ? tomap(yamldecode(file(var.rules_file))) : tomap({})

This comment has been minimized.

Copy link
@ludoo

ludoo Oct 25, 2023

Collaborator

yuck, can we avoid dois this? it tends to break in unexpected ways

This comment has been minimized.

Copy link
@sruffilli

sruffilli Oct 25, 2023

Author Collaborator

That doesn't even work in a convoluted test scenario I'm hitting - switching to a different workaround.

factory_rules = {
for k, v in local._factory_rules : k => {
dns_name = v.dns_name
Expand Down

0 comments on commit d6dff6a

Please sign in to comment.