Skip to content
Snippets Groups Projects
Commit c32ad0ac authored by TangBin's avatar TangBin
Browse files

aliyun finance cloud region add suffix

parent ecc75aa2
No related branches found
No related tags found
No related merge requests found
......@@ -196,7 +196,11 @@ func (self *SRegion) GetId() string {
}
func (self *SRegion) GetName() string {
return fmt.Sprintf("%s %s", CLOUD_PROVIDER_ALIYUN_CN, self.LocalName)
if self.GetCloudEnv() == ALIYUN_FINANCE_CLOUDENV && !strings.Contains(self.LocalName, "金融") {
return fmt.Sprintf("%s %s %s", CLOUD_PROVIDER_ALIYUN_CN, self.LocalName, "金融云")
} else {
return fmt.Sprintf("%s %s", CLOUD_PROVIDER_ALIYUN_CN, self.LocalName)
}
}
func (self *SRegion) GetGlobalId() string {
......@@ -212,7 +216,7 @@ func (self *SRegion) GetProvider() string {
}
func (self *SRegion) GetCloudEnv() string {
return ""
return self.client.cloudEnv
}
func (self *SRegion) GetGeographicInfo() cloudprovider.SGeographicInfo {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment