]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
radosgw-admin: 'zonegroup modify' does not require realm
authorCasey Bodley <cbodley@redhat.com>
Thu, 27 Feb 2020 21:14:15 +0000 (16:14 -0500)
committerCasey Bodley <cbodley@redhat.com>
Thu, 27 Feb 2020 21:14:15 +0000 (16:14 -0500)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_admin.cc

index a38bfd1e8bbacb9f29dbd388b37d78bcccc9fa72..ff7da8e27c374e4e685b458f3199217055983f0f 100644 (file)
@@ -4569,15 +4569,8 @@ int main(int argc, const char **argv)
       break;
     case OPT::ZONEGROUP_MODIFY:
       {
-       RGWRealm realm(realm_id, realm_name);
-       int ret = realm.init(g_ceph_context, store->svc()->sysobj);
-       if (ret < 0) {
-         cerr << "failed to init realm: " << cpp_strerror(-ret) << std::endl;
-         return -ret;
-       }
-
        RGWZoneGroup zonegroup(zonegroup_id, zonegroup_name);
-       ret = zonegroup.init(g_ceph_context, store->svc()->sysobj);
+       int ret = zonegroup.init(g_ceph_context, store->svc()->sysobj);
        if (ret < 0) {
          cerr << "failed to init zonegroup: " << cpp_strerror(-ret) << std::endl;
          return -ret;