Merge pull request #181 from qur/overrides

packer: Delete "override" key for config passed to provisioners
This commit is contained in:
Mitchell Hashimoto 2013-07-14 17:22:01 -07:00
commit 85f92e35f6
1 changed files with 5 additions and 0 deletions

View File

@ -221,6 +221,11 @@ func ParseTemplate(data []byte) (t *Template, err error) {
continue
}
// The provisioners not only don't need or want the override settings
// (as they are processed as part of the preparation below), but will
// actively reject them as invalid configuration.
delete(v, "override")
raw.rawConfig = v
}