Skip to content

Commit

Permalink
Merge pull request #1161 from ioito/hotfix/qx-volc-region-name-cn
Browse files Browse the repository at this point in the history
fix(volc): region name
  • Loading branch information
ioito authored Jan 11, 2025
2 parents 0489f50 + 5833fcf commit a9f8e32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/multicloud/volcengine/region.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ func (region *SRegion) GetId() string {

func (region *SRegion) GetName() string {
if localName, ok := RegionLocations[region.RegionId]; ok {
return fmt.Sprintf("%s %s", CLOUD_PROVIDER_VOLCENGINE_CN, localName)
return localName
}
return fmt.Sprintf("%s %s", CLOUD_PROVIDER_VOLCENGINE_CN, region.RegionId)
return region.RegionId
}

func (region *SRegion) GetGlobalId() string {
Expand Down

0 comments on commit a9f8e32

Please sign in to comment.