From c9245e71182f68a1e9d0f5c6ea5611f15d4d6937 Mon Sep 17 00:00:00 2001 From: Abhishek Lekshmanan Date: Mon, 21 Mar 2016 20:48:11 +0100 Subject: [PATCH] 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 --- src/rgw/rgw_rados.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 6d5856498d3..717778881ce 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; } -- 2.39.5