summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Prince <dan.prince@rackspace.com>2011-05-31 08:20:40 -0400
committerDan Prince <dan.prince@rackspace.com>2011-05-31 08:20:40 -0400
commitd6cd02a07ab3b66a53689fb8edbf55db03b4bff2 (patch)
treea679633eda9ac1689c2dc80c8fb67314c1a82ebd
parent394b37f8c944fbd3ca683d7752cd751bc69cce51 (diff)
downloadnova-d6cd02a07ab3b66a53689fb8edbf55db03b4bff2.tar.gz
nova-d6cd02a07ab3b66a53689fb8edbf55db03b4bff2.tar.xz
nova-d6cd02a07ab3b66a53689fb8edbf55db03b4bff2.zip
Actually remove the _action_resize code from the base Servers controller.
The V11 and V10 controllers implement these now.
-rw-r--r--nova/api/openstack/servers.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py
index a3066e578..4bd7ddb14 100644
--- a/nova/api/openstack/servers.py
+++ b/nova/api/openstack/servers.py
@@ -333,19 +333,6 @@ class Controller(common.OpenstackController):
def _action_resize(self, input_dict, req, id):
return exc.HTTPNotImplemented()
- """ Resizes a given instance to the flavor size requested """
- try:
- if 'resize' in input_dict and 'flavorId' in input_dict['resize']:
- flavor_id = input_dict['resize']['flavorId']
- self.compute_api.resize(req.environ['nova.context'], id,
- flavor_id)
- else:
- LOG.exception(_("Missing arguments for resize"))
- return faults.Fault(exc.HTTPUnprocessableEntity())
- except Exception, e:
- LOG.exception(_("Error in resize %s"), e)
- return faults.Fault(exc.HTTPBadRequest())
- return exc.HTTPAccepted()
def _action_reboot(self, input_dict, req, id):
if 'reboot' in input_dict and 'type' in input_dict['reboot']: