summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorNaveed Massjouni <naveedm9@gmail.com>2011-04-07 22:58:02 +0000
committerTarmac <>2011-04-07 22:58:02 +0000
commita20a304edfe2a4fba437a9cf6bc8146cc59f42ef (patch)
tree936eee427d15d7d911d4e50ce8eaba359f7c5beb /nova/api
parent8f319370c0c294991f936a4ae81214d3c7e22206 (diff)
parent003e8d8191dcf5ed91b48537cee7e661f094897e (diff)
This fixes how the metadata and addresses collections are serialized in xml responses.
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 f379839db..cc6509777 100644
--- a/nova/api/openstack/servers.py
+++ b/nova/api/openstack/servers.py
@@ -55,6 +55,13 @@ class Controller(common.OpenstackController):
"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"},
+ },
},
}