Skip to content

Commit

Permalink
Accept yml as config file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenAelterman authored Jul 20, 2024
1 parent e4ec263 commit 0b2e4d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/complete_vnext/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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))
)
Expand Down

0 comments on commit 0b2e4d0

Please sign in to comment.