Commit 47a83591 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer: say the pause before next provisioner

parent 2264f7d8
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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment