]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix error message for zone delete 8245/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Mon, 21 Mar 2016 19:48:11 +0000 (20:48 +0100)
committerAbhishek Lekshmanan <abhishek@suse.com>
Mon, 21 Mar 2016 19:57:34 +0000 (20:57 +0100)
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 <abhishek@suse.com>
src/rgw/rgw_rados.cc

index 6d5856498d314e5cb83b19d57e46d15138465388..717778881ce79b246f229210060894478580a556 100644 (file)
@@ -323,7 +323,7 @@ int RGWZoneGroup::remove_zone(const RGWZoneParams& zone_params)
   map<string, RGWZone>::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;
   }