virt-manager/0003-addhardware-Fix-attaching-USB-PCI-hostdev-bz-1146297.patch
Cole Robinson 033fd436da Fix crash when rebooting VMs after install (bz #1135546)
Fix dep on libosinfo (bz #1159370)
Fix PCI/USB hotplug (bz #1146297)
2014-11-16 14:58:58 -05:00

24 lines
954 B
Diff

From: Cole Robinson <crobinso@redhat.com>
Date: Wed, 24 Sep 2014 20:12:38 -0400
Subject: [PATCH virt-manager] addhardware: Fix attaching USB/PCI hostdev (bz
1146297)
(cherry picked from commit 3e5a20aaf13b97b2afe4415d3557dae74f89eaf7)
---
virtManager/addhardware.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/virtManager/addhardware.py b/virtManager/addhardware.py
index 7141c21..0c989df 100644
--- a/virtManager/addhardware.py
+++ b/virtManager/addhardware.py
@@ -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') %