mirror of
https://github.com/hashicorp/packer.git
synced 2026-10-04 05:33:17 -04:00
add context to Provisioner.Provision interface signature
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package packer
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"log"
|
||||
"sync"
|
||||
@@ -19,7 +20,7 @@ type Provisioner interface {
|
||||
// given to communicate with the user, and a communicator is given that
|
||||
// is guaranteed to be connected to some machine so that provisioning
|
||||
// can be done.
|
||||
Provision(Ui, Communicator) error
|
||||
Provision(context.Context, Ui, Communicator) error
|
||||
|
||||
// Cancel is called to cancel the provisioning. This is usually called
|
||||
// while Provision is still being called. The Provisioner should act
|
||||
|
||||
Reference in New Issue
Block a user