From 10589faa5fbde09689641d5e64ddd41a341eaade Mon Sep 17 00:00:00 2001 From: Josh Kearney Date: Tue, 20 Sep 2011 16:11:49 -0500 Subject: Include 'type' in XML output. --- nova/api/openstack/images.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nova/api') 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 -- cgit