From: Abhishek Lekshmanan Date: Mon, 21 Mar 2016 19:48:11 +0000 (+0100) Subject: rgw: fix error message for zone delete X-Git-Tag: v10.1.0~12^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c9245e71182f68a1e9d0f5c6ea5611f15d4d6937;p=ceph.git rgw: fix error message for zone delete Currently if a zone is not a part of a zonegroup, an error message is printed that zone doesn't exist, and the zone gets deleted anyway. Since this is exhibited only if the zone isn't a part of a zonegroup and we allow creation of such zones, clarify that the zone wasn't a part of zonegroup instead Fixes: #14951 Signed-off-by: Abhishek Lekshmanan --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 6d5856498d314..717778881ce79 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -323,7 +323,7 @@ int RGWZoneGroup::remove_zone(const RGWZoneParams& zone_params) map::iterator iter = zones.find(zone_params.get_id()); if (iter == zones.end()) { - ldout(cct, 0) << "zone " << zone_params.get_name() << " " << zone_params.get_id() << " doesn't exists "<< dendl; + ldout(cct, 0) << "zone " << zone_params.get_name() << " " << zone_params.get_id() << "is not a part of zonegroup "<< name << dendl; return -ENOENT; }