Beispiel #1
0
 def index(self, req):
     """Return all zones in brief"""
     # Ask the ZoneManager in the Scheduler for most recent data,
     # or fall-back to the database ...
     items = api.get_zone_list(req.environ['nova.context'])
     items = common.limited(items, req)
     items = [_scrub_zone(item) for item in items]
     return dict(zones=items)
Beispiel #2
0
 def index(self, req):
     """Return all zones in brief"""
     # Ask the ZoneManager in the Scheduler for most recent data,
     # or fall-back to the database ...
     items = api.get_zone_list(req.environ['nova.context'])
     items = common.limited(items, req)
     items = [_scrub_zone(item) for item in items]
     return dict(zones=items)