]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
radosgw-admin: use zone id when creating a zone
authorOrit Wasserman <owasserm@redhat.com>
Wed, 5 Apr 2017 10:31:08 +0000 (13:31 +0300)
committerOrit Wasserman <owasserm@redhat.com>
Wed, 5 Apr 2017 10:42:36 +0000 (13:42 +0300)
Fixes: http://tracker.ceph.com/issues/19498
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
src/rgw/rgw_admin.cc

index 6091f12b992f140e8685b0173b1c7709eb682505..49f897baa2025e48824e5e59e769fc1352e0e6fd 100644 (file)
@@ -3737,7 +3737,7 @@ int main(int argc, const char **argv)
          }
        }
 
-       RGWZoneParams zone(zone_name);
+       RGWZoneParams zone(zone_id, zone_name);
        ret = zone.init(g_ceph_context, store, false);
        if (ret < 0) {
          cerr << "unable to initialize zone: " << cpp_strerror(-ret) << std::endl;