packer: Return the provisioner prepare errors if they occurred

pull/15/head
Mitchell Hashimoto 13 years ago
parent 0a6d8ed75a
commit 4531922ec3

@ -50,9 +50,10 @@ func (b *coreBuild) Prepare(ui Ui) (err error) {
}
// Prepare the provisioners
// TODO: error handling
for _, coreProv := range b.provisioners {
coreProv.provisioner.Prepare(coreProv.config)
if err = coreProv.provisioner.Prepare(coreProv.config); err != nil {
return
}
}
return

Loading…
Cancel
Save