Stop wrapping yamldecode with try() (#1812)

This commit is contained in:
Simone Ruffilli
2023-10-25 16:16:05 +02:00
committed by GitHub
parent b015380028
commit 4decc641bb
61 changed files with 303 additions and 84 deletions

View File

@@ -19,7 +19,7 @@
locals {
_factory_data_raw = merge([
for f in try(fileset(var.org_policies_data_path, "*.yaml"), []) :
try(yamldecode(file("${var.org_policies_data_path}/${f}")), {})
yamldecode(file("${var.org_policies_data_path}/${f}"))
]...)
# simulate applying defaults to data coming from yaml files