diff options
author | Justin Santa Barbara <justin@fathomdb.com> | 2011-03-22 16:39:04 -0700 |
---|---|---|
committer | Justin Santa Barbara <justin@fathomdb.com> | 2011-03-22 16:39:04 -0700 |
commit | 92f076c981343e09c240533acf49a6fdd0384555 (patch) | |
tree | b9d3cc9ea944736a6e91cb3e3441379d77fd1dc6 /nova/wsgi.py | |
parent | cb9031903a0d93fcf242254f545aca2fdeb23f32 (diff) | |
download | nova-92f076c981343e09c240533acf49a6fdd0384555.tar.gz nova-92f076c981343e09c240533acf49a6fdd0384555.tar.xz nova-92f076c981343e09c240533acf49a6fdd0384555.zip |
Set XML namespace when returning XML
Diffstat (limited to 'nova/wsgi.py')
-rw-r--r-- | nova/wsgi.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nova/wsgi.py b/nova/wsgi.py index ba0819466..f0a60582d 100644 --- a/nova/wsgi.py +++ b/nova/wsgi.py @@ -478,6 +478,9 @@ class Serializer(object): root_key = data.keys()[0] doc = minidom.Document() node = self._to_xml_node(doc, metadata, root_key, data[root_key]) + node.setAttribute('xmlns', + 'http://docs.rackspacecloud.com/servers/api/v1.0') + return node.toprettyxml(indent=' ') def _to_xml_node(self, doc, metadata, nodename, data): |