diff options
| author | Cerberus <matt.dietz@rackspace.com> | 2010-09-30 18:43:44 -0700 |
|---|---|---|
| committer | Cerberus <matt.dietz@rackspace.com> | 2010-09-30 18:43:44 -0700 |
| commit | c92875b08ea5e2b6173880edcb9f731e0bf81399 (patch) | |
| tree | 80cea982da0fe57fad5355f34139672738a21c1c /nova/api | |
| parent | 06f04639dc4b1574ac3f35c955c1d6db0f84269d (diff) | |
| parent | c58acf2c59420a78f6b7195e3c1ef25e84f12e20 (diff) | |
Method cleanup and fixing the servers tests
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/rackspace/servers.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nova/api/rackspace/servers.py b/nova/api/rackspace/servers.py index 39e784be2..868b697e0 100644 --- a/nova/api/rackspace/servers.py +++ b/nova/api/rackspace/servers.py @@ -129,7 +129,7 @@ class Controller(wsgi.Controller): def show(self, req, id): """ Returns server details by server id """ user_id = req.environ['nova.context']['user']['id'] - inst = self.db_driver.instance_get_by_instance_id(None, id) + inst = self.db_driver.instance_get_by_internal_id(None, id) if inst: if inst.user_id == user_id: return _entity_detail(inst) @@ -151,10 +151,10 @@ class Controller(wsgi.Controller): if not env: return faults.Fault(exc.HTTPUnprocessableEntity()) - try: - inst = self._build_server_instance(req, env) - except Exception, e: - return faults.Fault(exc.HTTPUnprocessableEntity()) + #try: + inst = self._build_server_instance(req, env) + #except Exception, e: + # return faults.Fault(exc.HTTPUnprocessableEntity()) rpc.cast( FLAGS.compute_topic, { |
