From 1f849752ab3a70c0ca84ed5bf8e6bbcfe0e3a7a5 Mon Sep 17 00:00:00 2001 From: Devashish Date: Fri, 26 Jan 2024 14:29:45 -0500 Subject: [PATCH] Remove repeated code --- hcl2template/types.packer_config.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/hcl2template/types.packer_config.go b/hcl2template/types.packer_config.go index 0f547b22413..3ead0b6b5f1 100644 --- a/hcl2template/types.packer_config.go +++ b/hcl2template/types.packer_config.go @@ -109,11 +109,6 @@ func (cfg *PackerConfig) EvalContext(ctx BlockContext, variables map[string]cty. "name": cty.UnknownVal(cty.String), }), buildAccessor: cty.UnknownVal(cty.EmptyObject), - packerAccessor: cty.ObjectVal(map[string]cty.Value{ - "version": cty.StringVal(cfg.CorePackerVersionString), - "iterationID": cty.UnknownVal(cty.String), - "versionFingerprint": cty.UnknownVal(cty.String), - }), pathVariablesAccessor: cty.ObjectVal(map[string]cty.Value{ "cwd": cty.StringVal(strings.ReplaceAll(cfg.Cwd, `\`, `/`)), "root": cty.StringVal(strings.ReplaceAll(cfg.Basedir, `\`, `/`)),