Skip to content

Commit

Permalink
cloudfront: Fixup sweepers.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Mar 27, 2024
1 parent a7ce963 commit 7008268
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/cloudfront/sweep.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func sweepFunctions(region string) error {
for _, item := range page.FunctionList.Items {
name := aws.StringValue(item.Name)

output, err := FindFunctionByNameAndStage(ctx, conn, name, cloudfront.FunctionStageDevelopment)
output, err := findFunctionByTwoPartKey(ctx, conn, name, cloudfront.FunctionStageDevelopment)

if tfresource.NotFound(err) {
continue
Expand All @@ -322,7 +322,7 @@ func sweepFunctions(region string) error {
continue
}

r := ResourceFunction()
r := resourceFunction()
d := r.Data(nil)
d.SetId(name)
d.Set("etag", output.ETag)
Expand Down

0 comments on commit 7008268

Please sign in to comment.