From 7b370db177eace8dace5520d268670c07c617017 Mon Sep 17 00:00:00 2001 From: Lucas Bajolet Date: Wed, 6 Sep 2023 15:07:35 +0000 Subject: [PATCH] backport of commit f5ffc112bf629c13d501c8edf3364979c295df20 --- hcl2template/parser.go | 1 - 1 file changed, 1 deletion(-) diff --git a/hcl2template/parser.go b/hcl2template/parser.go index 1a0d40211..f32df1892 100644 --- a/hcl2template/parser.go +++ b/hcl2template/parser.go @@ -295,7 +295,6 @@ func filterVarsFromLogs(inputOrLocal Variables) { func (cfg *PackerConfig) Initialize(opts packer.InitializeOptions) hcl.Diagnostics { diags := cfg.InputVariables.ValidateValues() - diags = append(diags, cfg.LocalVariables.ValidateValues()...) diags = append(diags, cfg.evaluateDatasources(opts.SkipDatasourcesExecution)...) diags = append(diags, checkForDuplicateLocalDefinition(cfg.LocalBlocks)...) diags = append(diags, cfg.evaluateLocalVariables(cfg.LocalBlocks)...)