Merge pull request #1335 from jamesmao-xyz/patch-1

Inconsistent conditional result types error in net-vpc module
This commit is contained in:
Julio Castillo 2023-04-18 13:07:16 +02:00 committed by GitHub
commit 66f00903c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 = {