mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
addhardware: Fix attaching USB/PCI hostdev (bz 1146297)
This commit is contained in:
@@ -1744,7 +1744,7 @@ class vmmAddHardware(vmmGObjectUI):
|
||||
for vm in self.conn.list_vms():
|
||||
for hostdev in vm.get_hostdev_devices():
|
||||
if nodedev.compare_to_hostdev(hostdev):
|
||||
names.append(vm.name)
|
||||
names.append(vm.get_name())
|
||||
if names:
|
||||
res = self.err.yes_no(
|
||||
_('The device is already in use by other guests %s') %
|
||||
|
||||
Reference in New Issue
Block a user