Skip to content

Commit

Permalink
r/aws_s3_bucket_object_lock_configuration: Don't wait for the object …
Browse files Browse the repository at this point in the history
…lock configuration to disappear.
  • Loading branch information
ewbankkit committed Oct 19, 2023
1 parent 729d4b1 commit c3e3e2e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions internal/service/s3/bucket_object_lock_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,7 @@ func resourceBucketObjectLockConfigurationDelete(ctx context.Context, d *schema.
return diag.Errorf("deleting S3 Bucket Object Lock Configuration (%s): %s", d.Id(), err)
}

_, err = tfresource.RetryWhenNotFound(ctx, s3BucketPropagationTimeout, func() (interface{}, error) {
return findObjectLockConfiguration(ctx, conn, bucket, expectedBucketOwner)
})

if err != nil {
return diag.Errorf("waiting for S3 Bucket Object Lock Configuration (%s) delete: %s", d.Id(), err)
}
// Don't wait for the object lock configuration to disappear as may still exist.

return nil
}
Expand Down

0 comments on commit c3e3e2e

Please sign in to comment.