summaryrefslogtreecommitdiffstats
path: root/nova/virt
diff options
context:
space:
mode:
authorSalvatore Orlando <salvatore.orlando@eu.citrix.com>2011-02-16 17:16:31 +0000
committerSalvatore Orlando <salvatore.orlando@eu.citrix.com>2011-02-16 17:16:31 +0000
commit01e340f98765cc434624b3b4da49447f950f07ae (patch)
tree42fde93138e2ff461312b828550d88bf9ff94d50 /nova/virt
parent1b508d80dd76810f6183df50b9d9b324831875be (diff)
First commit of working code
Diffstat (limited to 'nova/virt')
-rw-r--r--nova/virt/xenapi/network_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/xenapi/network_utils.py b/nova/virt/xenapi/network_utils.py
index 4c2a81260..8f7806e6c 100644
--- a/nova/virt/xenapi/network_utils.py
+++ b/nova/virt/xenapi/network_utils.py
@@ -34,7 +34,7 @@ class NetworkHelper(HelperBase):
def find_network_with_name_label(cls,session,name_label):
networks = session.call_xenapi('network.get_by_name_label', name_label)
if len(networks) == 1:
- return networks.keys()[0]
+ return networks[0]
elif len(networks) > 1:
raise Exception(_('Found non-unique network'
' for name_label %s') % name_label)