From: Abhishek Lekshmanan Date: Mon, 21 Mar 2016 16:04:55 +0000 (+0100) Subject: rgw: fix zone delete message X-Git-Tag: v10.1.0~13^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F8243%2Fhead;p=ceph.git rgw: fix zone delete message Though this error message is hard to reach, it is still wrongly printed as failed to create instead of failed to delete. Signed-off-by: Abhishek Lekshmanan --- diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index fccc8023398a..0bb5570162fa 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -3261,7 +3261,7 @@ int main(int argc, char **argv) ret = zone.delete_obj(); if (ret < 0) { - cerr << "failed to create zone " << zone_name << ": " << cpp_strerror(-ret) << std::endl; + cerr << "failed to delete zone " << zone_name << ": " << cpp_strerror(-ret) << std::endl; return ret; } }