From 28ee8ed5fdb043fd3d21b54e4b028c0106953f70 Mon Sep 17 00:00:00 2001 From: Marcin Kaciuba Date: Mon, 13 Nov 2023 16:46:28 +0100 Subject: [PATCH] fix: trying to fix tests --- castai/cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/castai/cluster.go b/castai/cluster.go index b9e25b01..9fa2bc32 100644 --- a/castai/cluster.go +++ b/castai/cluster.go @@ -51,7 +51,7 @@ func resourceCastaiClusterDelete(ctx context.Context, data *schema.ResourceData, return retry.RetryableError(fmt.Errorf("triggered cluster deletion")) } - if agentStatus == sdk.ClusterAgentStatusDisconnected || agentStatus == "connecting" { + if agentStatus == sdk.ClusterAgentStatusDisconnected || agentStatus == "waiting-connection" { return triggerDelete() }