diff options
| author | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-03-18 11:46:27 -0700 |
|---|---|---|
| committer | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-03-18 11:46:27 -0700 |
| commit | 705020cc4acded862633aa5e02d5bb46c88dbc51 (patch) | |
| tree | 9db8ae71ed36648c51675cfcbab7588b4fd1f2b7 /nova/api | |
| parent | ef33d6bde27276fb4c93ed6bbcb972977f03a370 (diff) | |
api decorator
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/servers.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py index 49f714d47..17d620562 100644 --- a/nova/api/openstack/servers.py +++ b/nova/api/openstack/servers.py @@ -33,6 +33,7 @@ from nova.auth import manager as auth_manager from nova.compute import instance_types from nova.compute import power_state import nova.api.openstack +from nova.scheduler import api as scheduler_api LOG = logging.getLogger('server') @@ -125,6 +126,7 @@ class Controller(wsgi.Controller): res = [entity_maker(inst)['server'] for inst in limited_list] return dict(servers=res) + @scheduler_api.redirect_handler def show(self, req, id): """ Returns server details by server id """ try: |
