Skip to content

Commit

Permalink
Merge pull request #1335 from jamesmao-xyz/patch-1
Browse files Browse the repository at this point in the history
Inconsistent conditional result types error in net-vpc module
  • Loading branch information
juliocc authored Apr 18, 2023
2 parents 91a1168 + e1ebfee commit 66f0090
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/net-vpc/subnets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# tfdoc:file:description Subnet resources.

locals {
_factory_data = var.data_folder == null ? tomap({}) : {
for f in fileset(var.data_folder, "**/*.yaml") :
_factory_data = {
for f in try(fileset(var.data_folder, "**/*.yaml"), []) :
trimsuffix(basename(f), ".yaml") => yamldecode(file("${var.data_folder}/${f}"))
}
_factory_subnets = {
Expand Down

0 comments on commit 66f0090

Please sign in to comment.