mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Azure主机名称带上region信息,避免名称重复
This commit is contained in:
@@ -26,7 +26,7 @@ func (self *SClassicHost) GetId() string {
|
||||
}
|
||||
|
||||
func (self *SClassicHost) GetName() string {
|
||||
return fmt.Sprintf("%s-classic", self.zone.region.client.subscriptionId)
|
||||
return fmt.Sprintf("%s/%s-classic", self.zone.region.GetName(), self.zone.region.client.subscriptionId)
|
||||
}
|
||||
|
||||
func (self *SClassicHost) GetGlobalId() string {
|
||||
|
||||
@@ -23,7 +23,7 @@ func (self *SHost) GetId() string {
|
||||
}
|
||||
|
||||
func (self *SHost) GetName() string {
|
||||
return fmt.Sprintf("%s", self.zone.region.client.subscriptionId)
|
||||
return fmt.Sprintf("%s/%s", self.zone.region.GetName(), self.zone.region.client.subscriptionId)
|
||||
}
|
||||
|
||||
func (self *SHost) GetGlobalId() string {
|
||||
|
||||
Reference in New Issue
Block a user