From 20ba7028fc406509c5f8430f79f7153f359d87af Mon Sep 17 00:00:00 2001 From: Michael J Fork Date: Mon, 14 Jan 2013 13:45:23 +0000 Subject: Populate service list with availability zone Fixes bug 1099399 Availability zone was removed from the service object and is now added via a separate call to availabilty_zones.set_availability_zones Change-Id: I89126bb72e482f3ce701a9e28035416805a639a0 --- nova/api/openstack/compute/contrib/services.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nova/api') diff --git a/nova/api/openstack/compute/contrib/services.py b/nova/api/openstack/compute/contrib/services.py index c792c72da..2786ad814 100644 --- a/nova/api/openstack/compute/contrib/services.py +++ b/nova/api/openstack/compute/contrib/services.py @@ -21,6 +21,7 @@ import webob.exc from nova.api.openstack import extensions from nova.api.openstack import wsgi from nova.api.openstack import xmlutil +from nova import availability_zones from nova import db from nova import exception from nova.openstack.common import cfg @@ -69,6 +70,7 @@ class ServiceController(object): authorize(context) now = timeutils.utcnow() services = db.service_get_all(context) + services = availability_zones.set_availability_zones(context, services) host = '' if 'host' in req.GET: -- cgit