mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
connection: Have get_nodedevs return vmmNodeDevice
To make it consistent with similar vmmConnection functionas
This commit is contained in:
@@ -576,7 +576,7 @@ class vmmConnection(vmmGObject):
|
||||
str(xmlobj.product_id).startswith("0x000"))))):
|
||||
continue
|
||||
|
||||
retdevs.append(xmlobj)
|
||||
retdevs.append(dev)
|
||||
|
||||
return retdevs
|
||||
|
||||
@@ -585,8 +585,8 @@ class vmmConnection(vmmGObject):
|
||||
devs = self.get_nodedevs(devtype)
|
||||
|
||||
for dev in devs:
|
||||
if (vendor == dev.vendor_id and
|
||||
product == dev.product_id):
|
||||
if (vendor == dev.xmlobj.vendor_id and
|
||||
product == dev.xmlobj.product_id):
|
||||
count += 1
|
||||
|
||||
logging.debug("There are %d node devices with "
|
||||
|
||||
Reference in New Issue
Block a user