Commit 88d27453 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

command/build,validate: compiles again with latest user var changes

parent 55ad0058
......@@ -150,7 +150,7 @@ func (c Command) Run(env packer.Environment, args []string) int {
log.Printf("Preparing build: %s", b.Name())
b.SetDebug(cfgDebug)
b.SetForce(cfgForce)
err := b.Prepare()
err := b.Prepare(nil)
if err != nil {
env.Ui().Error(err.Error())
return 1
......
......@@ -79,7 +79,7 @@ func (c Command) Run(env packer.Environment, args []string) int {
// Check the configuration of all builds
for _, b := range builds {
log.Printf("Preparing build: %s", b.Name())
err := b.Prepare()
err := b.Prepare(nil)
if err != nil {
errs = append(errs, fmt.Errorf("Errors validating build '%s'. %s", b.Name(), err))
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment