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

packer: say the pause before next provisioner

parent 2264f7d8
package packer package packer
import ( import (
"fmt"
"sync" "sync"
"time" "time"
) )
...@@ -105,6 +106,7 @@ func (p *PausedProvisioner) Provision(ui Ui, comm Communicator) error { ...@@ -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 // 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 { select {
case <-time.After(p.PauseBefore): case <-time.After(p.PauseBefore):
case <-cancelCh: 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