diff --git a/packer/template.go b/packer/template.go index 5f05962dcfa..995d6634293 100644 --- a/packer/template.go +++ b/packer/template.go @@ -161,6 +161,10 @@ func ParseTemplate(data []byte) (t *Template, err error) { continue } + // Now that we have the name, remove it from the config - as the builder + // itself doesn't know about, and it will cause a validation error. + delete(v, "name") + raw.rawConfig = v t.Builders[raw.Name] = raw