Merge pull request #907 in YUNIONIO/onecloud from ~LIZEXI/onecloud:hotfix/lzx-scheduler-host-zoneid-missing to release/2.5.0

* commit '47442d0fb587f44fcada042938d9211eec0183e0':
  scheduler: 修复 host cache desc 缺失 ZoneID 导致 prefer_zone 机制不生效
This commit is contained in:
邱剑
2019-01-08 23:42:55 +08:00
+1
View File
@@ -147,6 +147,7 @@ func (b *baseHostDesc) fillZone(host *models.Host) error {
return err
}
b.Zone = zone
b.ZoneID = host.ZoneID
return nil
}