]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: fix list_realms() and list_zones()
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 16 Oct 2018 14:18:03 +0000 (07:18 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Thu, 8 Nov 2018 17:19:30 +0000 (09:19 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/services/svc_zone.cc

index 9d00ca19092fb674ad690f5ef67500d448e25083..d01950415d3f8e36d7c96e684e921990d934338e 100644 (file)
@@ -231,7 +231,7 @@ int RGWSI_Zone::list_zones(list<string>& zones)
   RGWZoneParams zoneparams;
   RGWSI_SysObj::Pool syspool = sysobj_svc->get_pool(zoneparams.get_pool(cct));
 
-  return syspool.op().list_prefixed_objs(zonegroup_names_oid_prefix, &zones);
+  return syspool.op().list_prefixed_objs(zone_names_oid_prefix, &zones);
 }
 
 int RGWSI_Zone::list_realms(list<string>& realms)
@@ -239,7 +239,7 @@ int RGWSI_Zone::list_realms(list<string>& realms)
   RGWRealm realm(cct, sysobj_svc);
   RGWSI_SysObj::Pool syspool = sysobj_svc->get_pool(realm.get_pool(cct));
 
-  return syspool.op().list_prefixed_objs(zonegroup_names_oid_prefix, &realms);
+  return syspool.op().list_prefixed_objs(realm_names_oid_prefix, &realms);
 }
 
 int RGWSI_Zone::list_periods(list<string>& periods)