Skip to content

Commit

Permalink
make the org policy factories more resilient
Browse files Browse the repository at this point in the history
  • Loading branch information
ludoo committed Oct 18, 2023
1 parent 717eedc commit a6b613d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/folder/organization-policies.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
locals {
_factory_data_raw = merge([
for f in try(fileset(var.org_policies_data_path, "*.yaml"), []) :
yamldecode(file("${var.org_policies_data_path}/${f}"))
try(yamldecode(file("${var.org_policies_data_path}/${f}")), {})
]...)

# simulate applying defaults to data coming from yaml files
Expand Down
2 changes: 1 addition & 1 deletion modules/organization/organization-policies.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
locals {
_factory_data_raw = merge([
for f in try(fileset(var.org_policies_data_path, "*.yaml"), []) :
yamldecode(file("${var.org_policies_data_path}/${f}"))
try(yamldecode(file("${var.org_policies_data_path}/${f}")), {})
]...)

# simulate applying defaults to data coming from yaml files
Expand Down
2 changes: 1 addition & 1 deletion modules/project/organization-policies.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
locals {
_factory_data_raw = merge([
for f in try(fileset(var.org_policies_data_path, "*.yaml"), []) :
yamldecode(file("${var.org_policies_data_path}/${f}"))
try(yamldecode(file("${var.org_policies_data_path}/${f}")), {})
]...)

# simulate applying defaults to data coming from yaml files
Expand Down

0 comments on commit a6b613d

Please sign in to comment.