Provide correct libvirt name/bus for virtual floppy
Change-Id: I16369eda04fbd0ed18da524eae5cf792c1b31155
This commit is contained in:
parent
5d8bec12d4
commit
80b40b5a84
4
releasenotes/notes/floppy-1be04ed78708caf1.yaml
Normal file
4
releasenotes/notes/floppy-1be04ed78708caf1.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Fixes incorrect device name and bus when attaching a virtual floppy.
|
@ -890,6 +890,8 @@ class LibvirtDriver(AbstractSystemsDriver):
|
|||||||
|
|
||||||
if controller_type == 'ide':
|
if controller_type == 'ide':
|
||||||
tgt_dev, tgt_bus = self.DEVICE_TARGET_MAP[device]
|
tgt_dev, tgt_bus = self.DEVICE_TARGET_MAP[device]
|
||||||
|
elif lv_device == 'floppy':
|
||||||
|
tgt_dev, tgt_bus = ('fda', 'fdc')
|
||||||
else:
|
else:
|
||||||
tgt_dev, tgt_bus = ('sdc', controller_type)
|
tgt_dev, tgt_bus = ('sdc', controller_type)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user