summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorTushar Patil <tushar.vitthal.patil@gmail.com>2011-07-12 11:28:06 -0700
committerTushar Patil <tushar.vitthal.patil@gmail.com>2011-07-12 11:28:06 -0700
commit2be9a4e19449f9cf37f62f3f6e380de3e7ca0d38 (patch)
tree83ee186e5eeb2b09b56dd05e804d5b91dad1f906 /nova/api
parent51834c2141bdbc283b9d165372be08eb6b9409ca (diff)
added xml deserialization unit test cases and fixe some pep errors
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/create_instance_helper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/api/openstack/create_instance_helper.py b/nova/api/openstack/create_instance_helper.py
index 5e1c8d8d9..86fa8becc 100644
--- a/nova/api/openstack/create_instance_helper.py
+++ b/nova/api/openstack/create_instance_helper.py
@@ -391,7 +391,8 @@ class ServerXMLDeserializer(wsgi.XMLDeserializer):
if networks_node is None:
return None
networks = []
- for network_node in self._find_children_named(networks_node, "network"):
+ for network_node in self._find_children_named(networks_node,
+ "network"):
item = {}
if network_node.hasAttribute("id"):
item["id"] = network_node.getAttribute("id")