Skip to content

Commit

Permalink
Fix semgrep 'ci.semgrep.migrate.direct-CRUD-calls'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed May 11, 2023
1 parent 2b7f1e1 commit 52ca245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/iam/sweep.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ func sweepPolicies(region string) error {
d := r.Data(nil)
d.SetId(arn)

err := sweep.NewSweepResource(r, d, client).Delete(ctx, sweep.ThrottlingRetryTimeout)
err := sweep.NewSweepResource(r, d, client).Delete(ctx, sweep.ThrottlingRetryTimeout) // nosemgrep:ci.semgrep.migrate.direct-CRUD-calls

// Treat this sweeper as best effort for now. There are a lot of edge cases
// with lingering aws_iam_role resources in the HashiCorp testing accounts.
Expand Down

0 comments on commit 52ca245

Please sign in to comment.