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())
|
log.Printf("Preparing build: %s", b.Name())
|
||||||
b.SetDebug(cfgDebug)
|
b.SetDebug(cfgDebug)
|
||||||
b.SetForce(cfgForce)
|
b.SetForce(cfgForce)
|
||||||
err := b.Prepare()
|
err := b.Prepare(nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
env.Ui().Error(err.Error())
|
env.Ui().Error(err.Error())
|
||||||
return 1
|
return 1
|
||||||
|
|
|
@ -79,7 +79,7 @@ func (c Command) Run(env packer.Environment, args []string) int {
|
||||||
// Check the configuration of all builds
|
// Check the configuration of all builds
|
||||||
for _, b := range builds {
|
for _, b := range builds {
|
||||||
log.Printf("Preparing build: %s", b.Name())
|
log.Printf("Preparing build: %s", b.Name())
|
||||||
err := b.Prepare()
|
err := b.Prepare(nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errs = append(errs, fmt.Errorf("Errors validating build '%s'. %s", b.Name(), err))
|
errs = append(errs, fmt.Errorf("Errors validating build '%s'. %s", b.Name(), err))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue