summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorNaveed Massjouni <naveedm9@gmail.com>2011-04-05 10:56:24 -0400
committerNaveed Massjouni <naveedm9@gmail.com>2011-04-05 10:56:24 -0400
commite6505fd78cc28a5e91ec6fbf55e2e8de07679c7c (patch)
tree2d96509769d8f275af334e392f3eb8a9537b2cde /nova/api
parent08417c48c223ad1b698ab1d00686a967b6a2dc0a (diff)
Fixed the addresses and metadata collections in xml responses.
Added corresponding tests.
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/servers.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py
index 6704a68ae..cada92813 100644
--- a/nova/api/openstack/servers.py
+++ b/nova/api/openstack/servers.py
@@ -55,6 +55,13 @@ class Controller(wsgi.Controller):
"imageRef"],
"link": ["rel", "type", "href"],
},
+ "dict_collections": {
+ "metadata": {"item_name": "meta", "item_key": "key"},
+ },
+ "list_collections": {
+ "public": {"item_name": "ip", "item_key": "addr"},
+ "private": {"item_name": "ip", "item_key": "addr"},
+ },
},
}