mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 16:13:56 +08:00
Merge pull request #1104 from Zexi/bugfix/disk-schedinput
fix: disk input erase storage_id by backend
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user