diff --git a/templates/complete/locals.tf b/templates/complete/locals.tf index 25c00381..5ab68584 100644 --- a/templates/complete/locals.tf +++ b/templates/complete/locals.tf @@ -6,7 +6,7 @@ locals { const_yml = "yml" } locals { - config = (local.config_file_extension == local.const_yaml ? + config = (local.config_file_extension == local.const_yaml || local.config_file_extension == local.const_yml ? yamldecode(templatefile("${path.module}/${local.config_file_name}", local.config_template_file_variables)) : jsondecode(templatefile("${path.module}/${local.config_file_name}", local.config_template_file_variables)) ) diff --git a/templates/complete_vnext/locals.tf b/templates/complete_vnext/locals.tf index dc67fe83..21ed2865 100644 --- a/templates/complete_vnext/locals.tf +++ b/templates/complete_vnext/locals.tf @@ -6,7 +6,7 @@ locals { const_yml = "yml" } locals { - config = (local.config_file_extension == local.const_yaml ? + config = (local.config_file_extension == local.const_yaml || local.config_file_extension == local.const_yml ? yamldecode(templatefile("${path.module}/${local.config_file_name}", local.config_template_file_variables)) : jsondecode(templatefile("${path.module}/${local.config_file_name}", local.config_template_file_variables)) )