mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
fix(region): hostname sync (#15659)
This commit is contained in:
@@ -2745,8 +2745,9 @@ func (self *SGuest) syncWithCloudVM(ctx context.Context, userCred mcclient.Token
|
||||
self.Name = newName
|
||||
}
|
||||
}
|
||||
if extVM.GetName() != extVM.GetHostname() {
|
||||
self.Hostname = pinyinutils.Text2Pinyin(extVM.GetHostname())
|
||||
hostname := pinyinutils.Text2Pinyin(extVM.GetHostname())
|
||||
if extVM.GetName() != hostname {
|
||||
self.Hostname = hostname
|
||||
}
|
||||
if !self.IsFailureStatus() && syncStatus {
|
||||
self.Status = extVM.GetStatus()
|
||||
|
||||
Reference in New Issue
Block a user