]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
radosgw-admin: zonegroupmap get should no error if no realm or period
authorOrit Wasserman <owasserm@redhat.com>
Mon, 19 Oct 2015 15:16:58 +0000 (17:16 +0200)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Feb 2016 00:13:17 +0000 (16:13 -0800)
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
src/rgw/rgw_admin.cc

index 8f9b5ad7b9c6593bee6b83f6b056e0ec895f0b21..c0fd0316aa936c3d59f69e98b08f3172590406cd 100644 (file)
@@ -2432,7 +2432,7 @@ int main(int argc, char **argv)
        RGWZoneGroupMap zonegroupmap;
 
        int ret = zonegroupmap.read(g_ceph_context, store);
-       if (ret < 0) {
+       if (ret < 0 && ret != -ENOENT) {
          cerr << "failed to read zonegroupmap info: " << cpp_strerror(ret);
          return ret;
        }