Merge pull request #7745 from hashicorp/investigate_crash
small cleanups
This commit is contained in:
commit
c9a22b6380
|
@ -356,6 +356,7 @@ func (u *MachineReadableUi) Machine(category string, args ...string) {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
log.Printf("%d,%s,%s,%s\n", now.Unix(), target, category, argsString)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TimestampedUi is a UI that wraps another UI implementation and
|
// TimestampedUi is a UI that wraps another UI implementation and
|
||||||
|
|
|
@ -27,11 +27,8 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
|
||||||
|
|
||||||
func (p *Provisioner) Provision(ctx context.Context, ui packer.Ui, _ packer.Communicator) error {
|
func (p *Provisioner) Provision(ctx context.Context, ui packer.Ui, _ packer.Communicator) error {
|
||||||
_, retErr := sl.Run(ctx, ui, &p.config)
|
_, retErr := sl.Run(ctx, ui, &p.config)
|
||||||
if retErr != nil {
|
|
||||||
return retErr
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
return retErr
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Provisioner) Cancel() {
|
func (p *Provisioner) Cancel() {
|
||||||
|
|
Loading…
Reference in New Issue