diff options
| author | mdietz <mdietz@openstack> | 2010-10-08 21:08:48 +0000 |
|---|---|---|
| committer | mdietz <mdietz@openstack> | 2010-10-08 21:08:48 +0000 |
| commit | c1190d55e130a80ac831ce15e6e30c28c5621aff (patch) | |
| tree | 377699d418ee3c1a59aa7e698ba11e88c6bf60f6 /nova/api | |
| parent | 90f38090ecd586a39257b3efd2c86c2c60b7fdb9 (diff) | |
That's what I get for not using a good vimrc
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/servers.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py index f234af7de..5d1ed9822 100644 --- a/nova/api/openstack/servers.py +++ b/nova/api/openstack/servers.py @@ -170,14 +170,14 @@ class Controller(wsgi.Controller): def action(self, req, id): """ multi-purpose method used to reboot, rebuild, and resize a server """ - user_id = req.environ['nova.context']['user']['id'] + user_id = req.environ['nova.context']['user']['id'] input_dict = self._deserialize(req.body, req) try: reboot_type = input_dict['reboot']['type'] except Exception: raise faults.Fault(webob.exc.HTTPNotImplemented()) - inst_ref = self.db.instance_get_by_internal_id(None, int(id)) - if not inst_ref or (inst_ref and not inst_ref.user_id == user_id): + inst_ref = self.db.instance_get_by_internal_id(None, int(id)) + if not inst_ref or (inst_ref and not inst_ref.user_id == user_id): return faults.Fault(exc.HTTPUnprocessableEntity()) cloud.reboot(id) |
