Merge pull request #1104 from Zexi/bugfix/disk-schedinput

fix: disk input erase storage_id by backend
This commit is contained in:
yunion-ci-robot
2019-06-09 11:17:49 +08:00
committed by GitHub

View File

@@ -4143,7 +4143,7 @@ func (self *SGuest) FillDiskSchedDesc(desc *api.ServerConfigs) {
for i := 0; i < len(guestDisks); i++ {
diskConf := guestDisks[i].ToDiskConfig()
// HACK: storage used by self, so earse it
if diskConf.DiskType == api.STORAGE_LOCAL {
if diskConf.Backend == api.STORAGE_LOCAL {
diskConf.Storage = ""
}
desc.Disks = append(desc.Disks, diskConf)