summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorFei Long Wang <flwang@cn.ibm.com>2013-03-24 12:36:47 +0800
committerFei Long Wang <flwang@cn.ibm.com>2013-03-24 18:15:05 +0800
commitc5097ab6682ee1b3021bb628e5083108e3b368d0 (patch)
tree69439a7cb5b542637c81fa79abd4a0c6b8a63121 /nova/api
parent11a925ca74971002c26e6e61853f850b862ec62d (diff)
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
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/compute/contrib/hosts.py1
1 files changed, 1 insertions, 0 deletions
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)