From e8510507743c42792575b4c2a073e2112a8075c2 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Wed, 4 Mar 2020 12:32:29 +0100 Subject: [PATCH] don't force to set unused variables too --- hcl2template/parser.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/hcl2template/parser.go b/hcl2template/parser.go index 39b4c76ff..9ecbde9a2 100644 --- a/hcl2template/parser.go +++ b/hcl2template/parser.go @@ -107,11 +107,6 @@ func (p *Parser) parse(filename string, vars map[string]string) (*PackerConfig, diags = append(diags, cfg.evaluateLocalVariables(locals)...) } - // _, moreDiags := cfg.InputVariables.Values() - // diags = append(diags, moreDiags...) - // _, moreDiags = cfg.LocalVariables.Values() - // diags = append(diags, moreDiags...) - // parse var files { hclVarFiles, jsonVarFiles, moreDiags := GetHCL2Files(filename, hcl2VarFileExt, hcl2VarJsonFileExt)