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.
pull/919/head
Julian Phillips 13 years ago
parent dee1bc6c67
commit 40897fdfc2

@ -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

Loading…
Cancel
Save