diff --git a/hcl2template/types.packer_config.go b/hcl2template/types.packer_config.go index 96293eb18..29e1da811 100644 --- a/hcl2template/types.packer_config.go +++ b/hcl2template/types.packer_config.go @@ -353,7 +353,7 @@ func (cfg *PackerConfig) GetBuilds(opts packer.GetBuildsOptions) ([]packer.Build } pcb := &packer.CoreBuild{ - Type: src.Type, + Type: src.Ref().String(), Builder: builder, Provisioners: provisioners, PostProcessors: pps,