add a 5 seconds timeout to provisioner hook
This commit is contained in:
parent
a81abd297b
commit
f7cd2b9334
|
@ -53,6 +53,8 @@ func (h *ProvisionHook) Run(ctx context.Context, name string, ui Ui, comm Commun
|
|||
|
||||
for _, p := range h.Provisioners {
|
||||
ts := CheckpointReporter.AddSpan(p.TypeName, "provisioner", p.Config)
|
||||
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
|
||||
defer cancel()
|
||||
|
||||
err := p.Provisioner.Provision(ctx, ui, comm)
|
||||
|
||||
|
|
Loading…
Reference in New Issue