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:
邱剑
2018-11-10 15:30:31 +08:00
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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
})
+1 -1
View File
@@ -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 {