From 6c48b902d760f2c2560bb2508fb9c8d09dbb4f7e Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Mon, 4 Sep 2023 20:34:05 +0800 Subject: [PATCH] chore: import packages only once Signed-off-by: guoguangwu --- workspacehelper/workspace_helper.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/workspacehelper/workspace_helper.go b/workspacehelper/workspace_helper.go index 78d2ed5c..4751b243 100644 --- a/workspacehelper/workspace_helper.go +++ b/workspacehelper/workspace_helper.go @@ -13,7 +13,6 @@ import ( "github.com/go-logr/logr" "github.com/hashicorp/go-tfe" - tfc "github.com/hashicorp/go-tfe" appv1alpha1 "github.com/hashicorp/terraform-k8s/api/v1alpha1" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" @@ -374,7 +373,7 @@ func (r *WorkspaceHelper) prepareModuleRun(instance *appv1alpha1.Workspace, opti if err != nil { return true, err } - if !(configVersion.Status == tfc.ConfigurationUploaded) { + if !(configVersion.Status == tfe.ConfigurationUploaded) { return true, err }