diff --git a/hcl2template/types.packer_config.go b/hcl2template/types.packer_config.go index 82e4374f3..a19dba2dd 100644 --- a/hcl2template/types.packer_config.go +++ b/hcl2template/types.packer_config.go @@ -69,6 +69,7 @@ func (cfg *PackerConfig) EvalContext(variables map[string]cty.Value) *hcl.EvalCo "type": cty.UnknownVal(cty.String), "name": cty.UnknownVal(cty.String), }), + buildAccessor: cty.UnknownVal(cty.EmptyObject), }, } for k, v := range variables {