command/build,validate: compiles again with latest user var changes
This commit is contained in:
parent
55ad0058bc
commit
88d274537c
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue