From ad087405f1874259f9ac9ce34402ab3c6458a411 Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Mon, 20 Aug 2012 16:14:09 -0700 Subject: Returns hypervisor_hostname in xml of extension The extended_server_attributes extension returns hypervisor_hostname in json output, but it was inadvertently omitted from xml. This makes the output consistent between the two. Tests included. Fixes bug 1039276 Change-Id: Ib8cd71cd5bfb65785a02085061fea5e515a0568c --- nova/api/openstack/compute/contrib/extended_server_attributes.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nova/api') diff --git a/nova/api/openstack/compute/contrib/extended_server_attributes.py b/nova/api/openstack/compute/contrib/extended_server_attributes.py index f1ec9b956..6ca10559f 100644 --- a/nova/api/openstack/compute/contrib/extended_server_attributes.py +++ b/nova/api/openstack/compute/contrib/extended_server_attributes.py @@ -102,6 +102,8 @@ def make_server(elem): '%s:instance_name' % Extended_server_attributes.alias) elem.set('{%s}host' % Extended_server_attributes.namespace, '%s:host' % Extended_server_attributes.alias) + elem.set('{%s}hypervisor_hostname' % Extended_server_attributes.namespace, + '%s:hypervisor_hostname' % Extended_server_attributes.alias) class ExtendedServerAttributeTemplate(xmlutil.TemplateBuilder): -- cgit