diff options
| author | Cerberus <matt.dietz@rackspace.com> | 2011-02-18 16:13:34 -0600 |
|---|---|---|
| committer | Cerberus <matt.dietz@rackspace.com> | 2011-02-18 16:13:34 -0600 |
| commit | a43c5929de7ebf58eb9ecb8416ce3cf4194c176a (patch) | |
| tree | a572833216fa6394b8b647f0064db198ef2b404a /nova/api | |
| parent | 62b3eb71384581e900b061e65caa6418c4452fa9 (diff) | |
Pep8 cleanup
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/servers.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py index a719f5e15..f68c97323 100644 --- a/nova/api/openstack/servers.py +++ b/nova/api/openstack/servers.py @@ -209,12 +209,12 @@ class Controller(wsgi.Controller): resize a server """ actions = { - 'reboot':self._action_reboot, - 'resize':self._action_resize, - 'confirmResize':self._action_confirm_resize, - 'revertResize':self._action_revert_resize, - 'rebuild':self._action_rebuild - } + 'reboot': self._action_reboot, + 'resize': self._action_resize, + 'confirmResize': self._action_confirm_resize, + 'revertResize': self._action_revert_resize, + 'rebuild': self._action_rebuild, + } input_dict = self._deserialize(req.body, req) for key in actions.keys(): @@ -256,7 +256,6 @@ class Controller(wsgi.Controller): return faults.Fault(exc.HTTPBadRequest()) return faults.Fault(exc.HTTPAccepted()) - def _action_reboot(self, input_dict, req, id): try: reboot_type = input_dict['reboot']['type'] |
