From dca4fabd1b4395032a223268f0009cf1138511a6 Mon Sep 17 00:00:00 2001 From: Julian Phillips Date: Fri, 19 Jul 2013 15:36:13 +0100 Subject: [PATCH] packer/template: Remove name from builder rawConfig This prevents the builder from rejecting the name (which it doesn't know about) when validating the config. --- packer/template.go | 4 ++++ 1 file changed, 4 insertions(+) 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