Skip to content

Commit

Permalink
rgw: fix GET website response error code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dplyakin committed Dec 11, 2017
1 parent 6f35533 commit 56344f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rgw/rgw_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 56344f0

Please sign in to comment.