mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
fix: guest vdi spec override image spec
This commit is contained in:
@@ -1345,7 +1345,7 @@ func (manager *SGuestManager) validateCreateData(
|
||||
}
|
||||
input.DisableUsbKbd = imgProperties[imageapi.IMAGE_DISABLE_USB_KBD] == "true"
|
||||
|
||||
if vdi, ok := imgProperties[imageapi.IMAGE_VDI_PROTOCOL]; ok && len(vdi) > 0 {
|
||||
if vdi, ok := imgProperties[imageapi.IMAGE_VDI_PROTOCOL]; ok && len(vdi) > 0 && len(input.Vdi) == 0 {
|
||||
input.Vdi = vdi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user