From 92bef8f4a3af56202875827bb642df6efbcbad08 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Fri, 29 Oct 2021 15:59:37 -0700 Subject: [PATCH] don't set iteration id unless it exists? --- hcl2template/types.packer_config.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hcl2template/types.packer_config.go b/hcl2template/types.packer_config.go index f91d3ae4d..eb35b73b8 100644 --- a/hcl2template/types.packer_config.go +++ b/hcl2template/types.packer_config.go @@ -109,8 +109,7 @@ func (cfg *PackerConfig) EvalContext(ctx BlockContext, variables map[string]cty. }), buildAccessor: cty.UnknownVal(cty.EmptyObject), packerAccessor: cty.ObjectVal(map[string]cty.Value{ - "version": cty.StringVal(cfg.CorePackerVersionString), - "iterationID": cty.UnknownVal(cty.String), + "version": cty.StringVal(cfg.CorePackerVersionString), }), pathVariablesAccessor: cty.ObjectVal(map[string]cty.Value{ "cwd": cty.StringVal(strings.ReplaceAll(cfg.Cwd, `\`, `/`)),