fix: using correct response on get_bucket_lifecycle_configuration (#8962)

This commit is contained in:
astorath
2020-02-08 14:16:59 +03:00
committed by GitHub
parent f749a9bf0e
commit 6b1f2fc133
2 changed files with 8 additions and 2 deletions

View File

@@ -346,7 +346,7 @@ func ErrorRespToObjectError(err error, params ...string) error {
err = BucketNotEmpty{}
case "NoSuchBucketPolicy":
err = BucketPolicyNotFound{}
case "NoSuchBucketLifecycle":
case "NoSuchLifecycleConfiguration":
err = BucketLifecycleNotFound{}
case "InvalidBucketName":
err = BucketNameInvalid{Bucket: bucket}