Merge pull request #16030 from wanyaoqi/fix/disable-floppy-on-other-machines

fix(host): disable floppy on machine type isn't pc
This commit is contained in:
Zexi Li
2023-02-24 16:44:20 +08:00
committed by GitHub
+1 -1
View File
@@ -360,7 +360,7 @@ func (s *SKVMGuestInstance) initCdromDesc() {
}
func (s *SKVMGuestInstance) initFloppyDesc() {
if s.GetOsName() != OS_NAME_WINDOWS {
if s.Desc.Machine != "pc" || s.GetOsName() != OS_NAME_WINDOWS {
return
}
if s.Desc.Floppys == nil {