connection: Have get_nodedevs return vmmNodeDevice

To make it consistent with similar vmmConnection functionas
This commit is contained in:
Cole Robinson
2015-04-07 14:12:00 -04:00
parent ebfb0cd726
commit c66bc2a87f
9 changed files with 34 additions and 28 deletions

View File

@@ -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 "