mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
ctyun region name fix
This commit is contained in:
@@ -103,6 +103,7 @@ func (client *SCtyunClient) fetchRegions() error {
|
||||
Description: zone.ZoneName,
|
||||
ID: zone.RegionID,
|
||||
ParentRegionID: zone.RegionID,
|
||||
RegionName: zone.ZoneName,
|
||||
izones: []cloudprovider.ICloudZone{&zone},
|
||||
}
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ type SRegion struct {
|
||||
client *SCtyunClient
|
||||
storageCache *SStoragecache
|
||||
|
||||
RegionName string
|
||||
Description string `json:"description"`
|
||||
ID string `json:"id"`
|
||||
ParentRegionID string `json:"parent_region_id"`
|
||||
@@ -162,7 +163,7 @@ func (self *SRegion) GetId() string {
|
||||
}
|
||||
|
||||
func (self *SRegion) GetName() string {
|
||||
return self.ID
|
||||
return fmt.Sprintf("%s %s", CLOUD_PROVIDER_CTYUN_CN, self.RegionName)
|
||||
}
|
||||
|
||||
func (self *SRegion) GetGlobalId() string {
|
||||
|
||||
@@ -53,7 +53,7 @@ func (self *SZone) GetId() string {
|
||||
}
|
||||
|
||||
func (self *SZone) GetName() string {
|
||||
return self.ZoneName
|
||||
return fmt.Sprintf("%s %s", CLOUD_PROVIDER_CTYUN_CN, self.ZoneID)
|
||||
}
|
||||
|
||||
func (self *SZone) GetGlobalId() string {
|
||||
|
||||
Reference in New Issue
Block a user