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

This commit is contained in:
Mitchell Hashimoto 2013-08-09 14:25:20 -07:00
parent 55ad0058bc
commit 88d274537c
2 changed files with 2 additions and 2 deletions

View File

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

View File

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