From ff30030e4f6b447c033167e97fd8529f4ea66140 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Tue, 19 Jan 2021 17:29:46 -0500 Subject: [PATCH] builtin provisioners are re-used and not Closed --- builtin/provisioners/file/resource_provisioner.go | 1 - builtin/provisioners/local-exec/resource_provisioner.go | 1 - builtin/provisioners/remote-exec/resource_provisioner.go | 1 - 3 files changed, 3 deletions(-) diff --git a/builtin/provisioners/file/resource_provisioner.go b/builtin/provisioners/file/resource_provisioner.go index 2625d6643..b96c03121 100644 --- a/builtin/provisioners/file/resource_provisioner.go +++ b/builtin/provisioners/file/resource_provisioner.go @@ -181,6 +181,5 @@ func (p *provisioner) Stop() error { } func (p *provisioner) Close() error { - p.cancel() return nil } diff --git a/builtin/provisioners/local-exec/resource_provisioner.go b/builtin/provisioners/local-exec/resource_provisioner.go index fb58ad254..f3225ff91 100644 --- a/builtin/provisioners/local-exec/resource_provisioner.go +++ b/builtin/provisioners/local-exec/resource_provisioner.go @@ -181,7 +181,6 @@ func (p *provisioner) Stop() error { } func (p *provisioner) Close() error { - p.cancel() return nil } diff --git a/builtin/provisioners/remote-exec/resource_provisioner.go b/builtin/provisioners/remote-exec/resource_provisioner.go index 088584ce5..4311ba164 100644 --- a/builtin/provisioners/remote-exec/resource_provisioner.go +++ b/builtin/provisioners/remote-exec/resource_provisioner.go @@ -116,7 +116,6 @@ func (p *provisioner) Stop() error { } func (p *provisioner) Close() error { - p.cancel() return nil }