Skip to content

Commit 1e8ee49

Browse files
Addressed lint issues and gofmt
1 parent edcab5d commit 1e8ee49

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

internal/resources/ekscluster/data_source.go

+8-9
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ func dataSourceTMCEKSClusterRead(ctx context.Context, d *schema.ResourceData, m
8484

8585
if isWaitForKubeconfig(d) {
8686
clusFullName := &clustermodel.VmwareTanzuManageV1alpha1ClusterFullName{
87-
Name: resp.EksCluster.Spec.AgentName,
88-
OrgID: clusterFn.OrgID,
89-
ManagementClusterName: "eks",
90-
ProvisionerName: "eks",
87+
Name: resp.EksCluster.Spec.AgentName,
88+
OrgID: clusterFn.OrgID,
89+
ManagementClusterName: "eks",
90+
ProvisionerName: "eks",
9191
}
9292
clusterResp, err := config.TMCConnection.ClusterResourceService.ManageV1alpha1ClusterResourceServiceGet(clusFullName)
9393
// nolint: wsl
@@ -100,11 +100,9 @@ func dataSourceTMCEKSClusterRead(ctx context.Context, d *schema.ResourceData, m
100100
if err != nil {
101101
log.Printf("[DEBUG] waiting for cluster(%s) to be in Healthy status", clusterFn.Name)
102102
return true, nil
103-
} else {
104-
if !mgmtClusterHealthy {
105-
log.Printf("[DEBUG] waiting for cluster(%s) to be in Healthy status", clusterFn.Name)
106-
return true, nil
107-
}
103+
} else if !mgmtClusterHealthy {
104+
log.Printf("[DEBUG] waiting for cluster(%s) to be in Healthy status", clusterFn.Name)
105+
return true, nil
108106
}
109107

110108
fn := &configModels.VmwareTanzuManageV1alpha1ClusterFullName{
@@ -113,6 +111,7 @@ func dataSourceTMCEKSClusterRead(ctx context.Context, d *schema.ResourceData, m
113111
Name: resp.EksCluster.Spec.AgentName,
114112
}
115113
resp, err := config.TMCConnection.KubeConfigResourceService.KubeconfigServiceGet(fn)
114+
// nolint: wsl
116115
if err != nil {
117116
log.Printf("Unable to get Tanzu Mission Control Kubeconfig entry, name : %s, error : %s", fn.Name, err.Error())
118117
return true, err

0 commit comments

Comments
 (0)