diff --git a/upup/pkg/fi/cloudup/terraform/target.go b/upup/pkg/fi/cloudup/terraform/target.go index 7bd5efe11812e..68dc8d9f394f4 100644 --- a/upup/pkg/fi/cloudup/terraform/target.go +++ b/upup/pkg/fi/cloudup/terraform/target.go @@ -83,9 +83,9 @@ func tfGetProviderExtraConfig(c *kops.TargetSpec) map[string]string { func (t *TerraformTarget) Finish(taskMap map[string]fi.Task) error { var err error if featureflag.TerraformJSON.Enabled() { - err = t.finishJSON(taskMap) + err = t.finishJSON() } else { - err = t.finishHCL2(taskMap) + err = t.finishHCL2() } if err != nil { return err diff --git a/upup/pkg/fi/cloudup/terraform/target_hcl2.go b/upup/pkg/fi/cloudup/terraform/target_hcl2.go index 4ab72f7640738..936b6a8fb557a 100644 --- a/upup/pkg/fi/cloudup/terraform/target_hcl2.go +++ b/upup/pkg/fi/cloudup/terraform/target_hcl2.go @@ -25,11 +25,10 @@ import ( "github.com/zclconf/go-cty/cty/gocty" "k8s.io/kops/pkg/apis/kops" "k8s.io/kops/pkg/featureflag" - "k8s.io/kops/upup/pkg/fi" "k8s.io/kops/upup/pkg/fi/cloudup/terraformWriter" ) -func (t *TerraformTarget) finishHCL2(taskMap map[string]fi.Task) error { +func (t *TerraformTarget) finishHCL2() error { f := hclwrite.NewEmptyFile() rootBody := f.Body() diff --git a/upup/pkg/fi/cloudup/terraform/target_json.go b/upup/pkg/fi/cloudup/terraform/target_json.go index 5368c8c47431a..0c7dc1d9e37e9 100644 --- a/upup/pkg/fi/cloudup/terraform/target_json.go +++ b/upup/pkg/fi/cloudup/terraform/target_json.go @@ -21,10 +21,9 @@ import ( "fmt" "k8s.io/kops/pkg/apis/kops" - "k8s.io/kops/upup/pkg/fi" ) -func (t *TerraformTarget) finishJSON(taskMap map[string]fi.Task) error { +func (t *TerraformTarget) finishJSON() error { resourcesByType, err := t.GetResourcesByType() if err != nil { return err