command/build: get command passing

This commit is contained in:
Mitchell Hashimoto 2013-11-02 23:09:58 -05:00
parent 5d45d9b728
commit 87e88dc847
1 changed files with 2 additions and 1 deletions

View File

@ -113,7 +113,8 @@ 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(userVars)
// TODO(mitchellh): Handle warnings
_, err := b.Prepare(userVars)
if err != nil {
env.Ui().Error(err.Error())
return 1