diff options
| author | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-02-18 17:45:57 -0400 |
|---|---|---|
| committer | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-02-18 17:45:57 -0400 |
| commit | 18e573a14414838f11e772edca3eb5510f852c94 (patch) | |
| tree | 878f96cc137f2fd752abbd71ce819af39380ea7f /nova/api | |
| parent | c884064e7a9af04b2ebdbbb9ee32318a00716412 (diff) | |
sandy y u no read hacking guide and import classes?
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/zones.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nova/api/openstack/zones.py b/nova/api/openstack/zones.py index 24a4444f7..99be0ba02 100644 --- a/nova/api/openstack/zones.py +++ b/nova/api/openstack/zones.py @@ -19,8 +19,7 @@ import logging from nova import flags from nova import wsgi from nova import db -from nova import rpc -from nova.scheduler.api import API +from nova.scheduler import api FLAGS = flags.FLAGS @@ -54,7 +53,7 @@ class Controller(wsgi.Controller): """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 = api.API().get_zone_list(req.environ['nova.context']) if not items: items = db.zone_get_all(req.environ['nova.context']) |
