diff --git a/internal/dashboard/business/oceanbase/obtenant.go b/internal/dashboard/business/oceanbase/obtenant.go index 3a4f26cb3..3b1a0a97c 100644 --- a/internal/dashboard/business/oceanbase/obtenant.go +++ b/internal/dashboard/business/oceanbase/obtenant.go @@ -174,10 +174,10 @@ func buildOverviewFromApiType(t *v1alpha1.OBTenant) *response.OBTenantOverview { rt.Locality = t.Status.TenantRecordInfo.Locality rt.PrimaryZone = t.Status.TenantRecordInfo.PrimaryZone - for i := range t.Spec.Pools { - pool := t.Spec.Pools[i] + for i := range t.Status.Pools { + pool := t.Status.Pools[i] replica := response.OBTenantReplica{ - Zone: pool.Zone, + Zone: pool.ZoneList, Priority: pool.Priority, Type: pool.Type.Name, }