mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(host): disable floppy on machine type isn't pc
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user