rgw: fix GET website response error code

Change NoSuchKey error code to NoSuchWebsiteConfiguration, when bucket doesn't have website configuration.

Fixes: http://tracker.ceph.com/issues/22272
Signed-off-by: Dmitry Plyakin <dplyakin@gmail.com>
This commit is contained in:
Dmitry Plyakin 2017-11-29 16:03:02 +03:00
parent 6f3553351d
commit 56344f0e14

View File

@ -2128,7 +2128,7 @@ void RGWGetBucketWebsite::pre_exec()
void RGWGetBucketWebsite::execute()
{
if (!s->bucket_info.has_website) {
op_ret = -ENOENT;
op_ret = -ERR_NO_SUCH_WEBSITE_CONFIGURATION;
}
}