mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
fix(region): get catalog data by region id
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
This commit is contained in:
@@ -462,7 +462,7 @@ func (self *TokenCredentialV3) GetCatalogData(serviceTypes []string, region stri
|
||||
}
|
||||
neps := make([]KeystoneEndpointV3, 0)
|
||||
for j := 0; j < len(catalog[i].Endpoints); j++ {
|
||||
if catalog[i].Endpoints[j].Region != region {
|
||||
if catalog[i].Endpoints[j].RegionId != region && catalog[i].Endpoints[j].Region != region {
|
||||
continue
|
||||
}
|
||||
neps = append(neps, catalog[i].Endpoints[j])
|
||||
|
||||
Reference in New Issue
Block a user