Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add param to DeleteAtlasSearchDeployment
Browse files Browse the repository at this point in the history
lantoli committed Jul 2, 2024
1 parent 209eaa1 commit f8904a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -154,7 +154,7 @@ func (r *searchDeploymentRS) Delete(ctx context.Context, req resource.DeleteRequ
connV2 := r.Client.AtlasV2
projectID := searchDeploymentState.ProjectID.ValueString()
clusterName := searchDeploymentState.ClusterName.ValueString()
if _, err := connV2.AtlasSearchApi.DeleteAtlasSearchDeployment(ctx, projectID, clusterName).Execute(); err != nil {
if _, _, err := connV2.AtlasSearchApi.DeleteAtlasSearchDeployment(ctx, projectID, clusterName).Execute(); err != nil {
resp.Diagnostics.AddError("error during search deployment delete", err.Error())
return
}

0 comments on commit f8904a5

Please sign in to comment.