Skip to content

Commit

Permalink
Update virttest/qemu_devices/qcontainer.py
Browse files Browse the repository at this point in the history
suggetion by Paul Yu to squash back once tested

Co-authored-by: Yu Yihuang <[email protected]>
  • Loading branch information
pevogam and PaulYuuu authored Aug 9, 2023
1 parent f667641 commit 17e999f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions virttest/qemu_devices/qcontainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2400,8 +2400,7 @@ def define_hbas(qtype, atype, bus, unit, port, qbus, pci_bus, iothread,
devices[-1].set_param('removable', removable, bool)
elif fmt == 'floppy':
if Flags.FLOPPY_DEVICE in self.caps:
devices[-1] = qdevices.QDevice('floppy', aobject=name)
devices[-1].parent_bus += ({'busid': 'drive_%s' % name},)
devices[-1] = qdevices.QDevice('floppy', aobject=name, parent_bus={'busid': 'drive_%s' % name})
devices[-1].set_param('unit', unit)
else:
# Overwrite qdevices.QDevice with qdevices.QFloppy
Expand Down

0 comments on commit 17e999f

Please sign in to comment.