diff --git a/packer/template.go b/packer/template.go index 5f05962dc..995d66342 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