From 1e8419c0e619f4884cbd7ba4c5fe35841e851813 Mon Sep 17 00:00:00 2001 From: Graham Davison Date: Thu, 22 Sep 2022 16:50:17 -0700 Subject: [PATCH] Uses safe deletion function --- internal/service/sqs/sweep.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/service/sqs/sweep.go b/internal/service/sqs/sweep.go index d136a31b29f..8b0634c78c2 100644 --- a/internal/service/sqs/sweep.go +++ b/internal/service/sqs/sweep.go @@ -49,7 +49,7 @@ func sweepQueues(region string) error { r := ResourceQueue() d := r.Data(nil) d.SetId(aws.StringValue(queueUrl)) - err = r.Delete(d, client) + err = sweep.DeleteResource(r, d, client) if err != nil { log.Printf("[ERROR] %s", err)