addhardware: Fix attaching USB/PCI hostdev (bz 1146297)

This commit is contained in:
Cole Robinson
2014-09-24 20:12:38 -04:00
parent 310f65273f
commit 3e5a20aaf1

View File

@@ -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') %