mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #457 in YUNIONIO/onecloud from ~QUXUAN/onecloud:hotfix/qx-azure-classic to release/2.2.0
* commit '84559581d4b81201b0441f6c665d6a76618db4b2': 避免调度到Azure经典类型主机上
This commit is contained in:
@@ -974,6 +974,7 @@ func (self *SHost) syncWithCloudHost(extHost cloudprovider.ICloudHost) error {
|
||||
|
||||
self.ManagerId = extHost.GetManagerId()
|
||||
self.IsEmulated = extHost.IsEmulated()
|
||||
self.Enabled = extHost.GetEnabled()
|
||||
|
||||
return nil
|
||||
})
|
||||
|
||||
@@ -73,7 +73,7 @@ func (self *SClassicHost) GetMemSizeMB() int {
|
||||
return 0
|
||||
}
|
||||
func (self *SClassicHost) GetEnabled() bool {
|
||||
return true
|
||||
return false
|
||||
}
|
||||
|
||||
func (self *SClassicHost) GetHostStatus() string {
|
||||
|
||||
Reference in New Issue
Block a user