summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Kearney <josh@jk0.org>2011-09-20 16:11:49 -0500
committerJosh Kearney <josh@jk0.org>2011-09-20 16:11:49 -0500
commit10589faa5fbde09689641d5e64ddd41a341eaade (patch)
tree8678c1cfbd1e31d92e4b025ec4d52037bf0ec173
parenta1256381c107fd0cf91bd11a319c38918778079b (diff)
downloadnova-10589faa5fbde09689641d5e64ddd41a341eaade.tar.gz
nova-10589faa5fbde09689641d5e64ddd41a341eaade.tar.xz
nova-10589faa5fbde09689641d5e64ddd41a341eaade.zip
Include 'type' in XML output.
-rw-r--r--nova/api/openstack/images.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/api/openstack/images.py b/nova/api/openstack/images.py
index 4340cbe3e..d579ae716 100644
--- a/nova/api/openstack/images.py
+++ b/nova/api/openstack/images.py
@@ -251,6 +251,8 @@ class ImageXMLSerializer(wsgi.XMLDictSerializer):
elem = etree.SubElement(image_elem,
'{%s}link' % xmlutil.XMLNS_ATOM)
elem.set('rel', link['rel'])
+ if 'type' in link:
+ elem.set('type', link['type'])
elem.set('href', link['href'])
return image_elem