Skip to content

Commit f0c77cd

Browse files
authored
fix: HTTP 404 handling okta_app_group_assignments (#2323)
1 parent 1f0a647 commit f0c77cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

okta/services/idaas/resource_okta_app_group_assignments.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ func deleteGroupAssignments(
408408
assignments []*sdk.ApplicationGroupAssignment,
409409
) error {
410410
for i := range assignments {
411-
_, err := delete(ctx, appID, assignments[i].Id)
412-
if err != nil {
411+
resp, err := delete(ctx, appID, assignments[i].Id)
412+
if err := suppressErrorOn404(resp, err); err != nil {
413413
return fmt.Errorf("could not delete assignment for group %s, to application %s: %w", assignments[i].Id, appID, err)
414414
}
415415
}

0 commit comments

Comments
 (0)