fix pathexpand in firewall policy module (#2111)

This commit is contained in:
Ludovico Magnocavallo 2024-02-26 16:52:41 +01:00 committed by GitHub
parent 6941313c7d
commit d667104b85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -16,15 +16,15 @@
locals { locals {
_factory_egress_rules = try( _factory_egress_rules = try(
yamldecode(pathexpand(file(var.factories_config.egress_rules_file_path))), yamldecode(file(pathexpand(var.factories_config.egress_rules_file_path))),
{} {}
) )
_factory_ingress_rules = try( _factory_ingress_rules = try(
yamldecode(pathexpand(file(var.factories_config.ingress_rules_file_path))), yamldecode(file(pathexpand(var.factories_config.ingress_rules_file_path))),
{} {}
) )
factory_cidrs = try( factory_cidrs = try(
yamldecode(pathexpand(file(var.factories_config.cidr_file_path))), {} yamldecode(file(pathexpand(var.factories_config.cidr_file_path))), {}
) )
factory_egress_rules = { factory_egress_rules = {
for k, v in local._factory_egress_rules : "egress/${k}" => { for k, v in local._factory_egress_rules : "egress/${k}" => {