@@ -84,10 +84,10 @@ func dataSourceTMCEKSClusterRead(ctx context.Context, d *schema.ResourceData, m
84
84
85
85
if isWaitForKubeconfig (d ) {
86
86
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" ,
91
91
}
92
92
clusterResp , err := config .TMCConnection .ClusterResourceService .ManageV1alpha1ClusterResourceServiceGet (clusFullName )
93
93
// nolint: wsl
@@ -100,11 +100,9 @@ func dataSourceTMCEKSClusterRead(ctx context.Context, d *schema.ResourceData, m
100
100
if err != nil {
101
101
log .Printf ("[DEBUG] waiting for cluster(%s) to be in Healthy status" , clusterFn .Name )
102
102
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
108
106
}
109
107
110
108
fn := & configModels.VmwareTanzuManageV1alpha1ClusterFullName {
@@ -113,6 +111,7 @@ func dataSourceTMCEKSClusterRead(ctx context.Context, d *schema.ResourceData, m
113
111
Name : resp .EksCluster .Spec .AgentName ,
114
112
}
115
113
resp , err := config .TMCConnection .KubeConfigResourceService .KubeconfigServiceGet (fn )
114
+ // nolint: wsl
116
115
if err != nil {
117
116
log .Printf ("Unable to get Tanzu Mission Control Kubeconfig entry, name : %s, error : %s" , fn .Name , err .Error ())
118
117
return true , err
0 commit comments