From c5097ab6682ee1b3021bb628e5083108e3b368d0 Mon Sep 17 00:00:00 2001 From: Fei Long Wang Date: Sun, 24 Mar 2013 12:36:47 +0800 Subject: Fixes Nova API /os-hosts missing element "zone" Now the HostIndexTemplate of Nova /os-hosts API is missing element "zone", which will cause the XML output of list hosts missing the zone attribute. Fixes bug: 1159055 Change-Id: I9940efcfd364c35b00cde4398d531d7ff56dc2b9 --- nova/api/openstack/compute/contrib/hosts.py | 1 + 1 file changed, 1 insertion(+) (limited to 'nova/api') diff --git a/nova/api/openstack/compute/contrib/hosts.py b/nova/api/openstack/compute/contrib/hosts.py index 3727f35d9..925ded736 100644 --- a/nova/api/openstack/compute/contrib/hosts.py +++ b/nova/api/openstack/compute/contrib/hosts.py @@ -34,6 +34,7 @@ class HostIndexTemplate(xmlutil.TemplateBuilder): elem = xmlutil.SubTemplateElement(root, 'host', selector='hosts') elem.set('host_name') elem.set('service') + elem.set('zone') return xmlutil.MasterTemplate(root, 1) -- cgit