fix pathexpand in firewall policy module (#2111)
This commit is contained in:
parent
6941313c7d
commit
d667104b85
|
@ -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}" => {
|
||||||
|
|
Loading…
Reference in New Issue