Skip to content

Commit 27efdb7

Browse files
committed
fix errors
1 parent 262d832 commit 27efdb7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

cfn-resources/organization/cmd/resource/resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ func Delete(req handler.Request, prevModel *Model, currentModel *Model) (handler
230230

231231
responseChan := make(chan DeleteResponse, 1)
232232
go func() {
233-
_, response, err := deleteRequest.Execute()
233+
response, err := deleteRequest.Execute()
234234
responseChan <- DeleteResponse{Error: err, Response: response}
235235
}()
236236

cfn-resources/resource-policy/cmd/resource/resource.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@ import (
1919
"fmt"
2020
"net/http"
2121

22+
"go.mongodb.org/atlas-sdk/v20250312002/admin"
23+
2224
"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
2325
"github.com/aws/aws-sdk-go/service/cloudformation"
26+
2427
"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
2528
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/constants"
2629
progress_events "github.com/mongodb/mongodbatlas-cloudformation-resources/util/progressevent"
2730
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/validator"
28-
"go.mongodb.org/atlas-sdk/v20250312002/admin"
2931
)
3032

3133
var CreateRequiredFields = []string{"OrgId", "Name", "Policies"}
@@ -139,7 +141,7 @@ func Delete(req handler.Request, prevModel *Model, currentModel *Model) (handler
139141

140142
orgID := currentModel.OrgId
141143
resourcePolicyID := currentModel.Id
142-
_, apiResp, err := conn.ResourcePoliciesApi.DeleteAtlasResourcePolicy(ctx, *orgID, *resourcePolicyID).Execute()
144+
apiResp, err := conn.ResourcePoliciesApi.DeleteAtlasResourcePolicy(ctx, *orgID, *resourcePolicyID).Execute()
143145
if err != nil {
144146
return handleError(apiResp, constants.DELETE, err)
145147
}

0 commit comments

Comments
 (0)