Skip to content

Commit

Permalink
fix: diconnect before delete
Browse files Browse the repository at this point in the history
  • Loading branch information
aldor007 committed Nov 14, 2023
1 parent a600f6f commit 43ee008
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ test:

testacc:
@echo "==> Running acceptance tests"
TF_ACC=1 go test ./castai/... '-run=^TestAcc' -v -timeout 10m
TF_ACC=1 go test ./castai/... '-run=^TestAcc' -v -timeout 16m

validate-terraform-examples:
for examples in examples/eks examples/gke examples/aks ; do \
Expand Down
2 changes: 1 addition & 1 deletion castai/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func resourceCastaiClusterDelete(ctx context.Context, data *schema.ResourceData,
return triggerDisconnect()
}

if chekErr := sdk.CheckResponseNoContent(res, err); chekErr != nil {
if checkErr := sdk.CheckResponseNoContent(res, err); checkErr != nil {
return retry.NonRetryableError(fmt.Errorf("error when deleting cluster status %s agent status %s error: %w", clusterStatus, agentStatus, err))
}
return retry.RetryableError(fmt.Errorf("triggered cluster deletion"))
Expand Down

0 comments on commit 43ee008

Please sign in to comment.