diff options
| author | Fei Long Wang <flwang@cn.ibm.com> | 2013-03-24 12:36:47 +0800 |
|---|---|---|
| committer | Fei Long Wang <flwang@cn.ibm.com> | 2013-03-24 18:15:05 +0800 |
| commit | c5097ab6682ee1b3021bb628e5083108e3b368d0 (patch) | |
| tree | 69439a7cb5b542637c81fa79abd4a0c6b8a63121 /nova/api | |
| parent | 11a925ca74971002c26e6e61853f850b862ec62d (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.py | 1 |
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) |
