Skip to content

Commit

Permalink
Add extra error ignore for HeadBucket
Browse files Browse the repository at this point in the history
  • Loading branch information
nolancon committed Dec 4, 2023
1 parent 0f3b8d7 commit 7658535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/s3/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func BucketExists(ctx context.Context, s3Backend backendstore.S3Client, bucketNa

_, err := s3Backend.HeadBucket(ctx, &s3.HeadBucketInput{Bucket: aws.String(bucketName)})
if err != nil {
return false, resource.Ignore(IsNotFound, err)
return false, resource.IgnoreAny(err, NoSuchBucket, IsNotFound)
}

cache.Set(bucketName)
Expand Down

0 comments on commit 7658535

Please sign in to comment.