packer: say the pause before next provisioner

This commit is contained in:
Mitchell Hashimoto 2013-12-20 21:39:23 -08:00
parent 2264f7d8a2
commit 47a8359183
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package packer
import (
"fmt"
"sync"
"time"
)
@ -105,6 +106,7 @@ func (p *PausedProvisioner) Provision(ui Ui, comm Communicator) error {
}()
// Use a select to determine if we get cancelled during the wait
ui.Say(fmt.Sprintf("Pausing %s before the next provisioner...", p.PauseBefore))
select {
case <-time.After(p.PauseBefore):
case <-cancelCh: