[Kimchi-devel] [PATCH 1/2] Fix name mismatch with imported module
Lucio Correia
luciojhc at linux.vnet.ibm.com
Thu Oct 1 20:42:02 UTC 2015
Signed-off-by: Lucio Correia <luciojhc at linux.vnet.ibm.com>
---
src/wok/plugins/kimchi/model/host.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/wok/plugins/kimchi/model/host.py b/src/wok/plugins/kimchi/model/host.py
index ddfbf0f..f32cf62 100644
--- a/src/wok/plugins/kimchi/model/host.py
+++ b/src/wok/plugins/kimchi/model/host.py
@@ -338,12 +338,12 @@ class DevicesModel(object):
xmlstr = dom.XMLDesc(0)
root = objectify.fromstring(xmlstr)
try:
- hostdev = root.devices.hostdev
+ hostDevices = root.devices.hostdev
except AttributeError:
continue
vm_devs = [DeviceModel.deduce_dev_name(e, self.conn)
- for e in hostdev]
+ for e in hostDevices]
for dev in vm_devs:
unavailable_devs.append(dev)
--
1.7.1
More information about the Kimchi-devel
mailing list