From 4522f323c9e57ff26130265e5eb8e44275cdf773 Mon Sep 17 00:00:00 2001 From: Katy Moe Date: Wed, 9 Sep 2020 16:34:39 +0100 Subject: [PATCH] use ReattachInfo type --- working_dir.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/working_dir.go b/working_dir.go index 3929746..f7697d3 100644 --- a/working_dir.go +++ b/working_dir.go @@ -37,7 +37,7 @@ type WorkingDir struct { // reattachInfo stores the gRPC socket info required for Terraform's // plugin reattach functionality - reattachInfo string + reattachInfo tfexec.ReattachInfo env map[string]string } @@ -62,12 +62,12 @@ func (wd *WorkingDir) Unsetenv(envVar string) { delete(wd.env, envVar) } -func (wd *WorkingDir) SetReattachInfo(reattachInfo string) { +func (wd *WorkingDir) SetReattachInfo(reattachInfo tfexec.ReattachInfo) { wd.reattachInfo = reattachInfo } func (wd *WorkingDir) UnsetReattachInfo() { - wd.reattachInfo = "" + wd.reattachInfo = nil } // GetHelper returns the Helper set on the WorkingDir.