Provide correct libvirt name/bus for virtual floppy

Change-Id: I16369eda04fbd0ed18da524eae5cf792c1b31155
This commit is contained in:
Dmitry Tantsur 2020-12-23 17:30:34 +01:00
parent 5d8bec12d4
commit 80b40b5a84
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,4 @@
---
fixes:
- |
Fixes incorrect device name and bus when attaching a virtual floppy.

View File

@ -890,6 +890,8 @@ class LibvirtDriver(AbstractSystemsDriver):
if controller_type == 'ide':
tgt_dev, tgt_bus = self.DEVICE_TARGET_MAP[device]
elif lv_device == 'floppy':
tgt_dev, tgt_bus = ('fda', 'fdc')
else:
tgt_dev, tgt_bus = ('sdc', controller_type)