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.
This commit is contained in:
parent
a31fd29b8b
commit
dca4fabd1b
|
@ -161,6 +161,10 @@ func ParseTemplate(data []byte) (t *Template, err error) {
|
||||||
continue
|
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
|
raw.rawConfig = v
|
||||||
|
|
||||||
t.Builders[raw.Name] = raw
|
t.Builders[raw.Name] = raw
|
||||||
|
|
Loading…
Reference in New Issue