Skip to content

Commit

Permalink
packer/template: Remove name from builder rawConfig
Browse files Browse the repository at this point in the history
This prevents the builder from rejecting the name (which it doesn't
know about) when validating the config.
  • Loading branch information
qur committed Jul 19, 2013
1 parent a31fd29 commit dca4fab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packer/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dca4fab

Please sign in to comment.