summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorCerberus <matt.dietz@rackspace.com>2011-02-10 15:01:38 -0600
committerCerberus <matt.dietz@rackspace.com>2011-02-10 15:01:38 -0600
commita70ac6609713f2b610923a7ae382208f4d46b74a (patch)
tree194cdd8e352c1c9c803ffbb1dcb5c8711ed2c1e3 /nova/api
parenta6ce3b777221690df17137e70d6b7bf35ad10b02 (diff)
downloadnova-a70ac6609713f2b610923a7ae382208f4d46b74a.tar.gz
nova-a70ac6609713f2b610923a7ae382208f4d46b74a.tar.xz
nova-a70ac6609713f2b610923a7ae382208f4d46b74a.zip
Typo fixes and some stupidity about the models
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/servers.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py
index 61dd3be36..06a40e92c 100644
--- a/nova/api/openstack/servers.py
+++ b/nova/api/openstack/servers.py
@@ -207,27 +207,26 @@ class Controller(wsgi.Controller):
return faults.Fault(exc.HTTPNotImplemented())
def _action_confirm_resize(self, input_dict, req, id):
- return fault.Fault(exc.HTTPNotImplemented())
+ return faults.Fault(exc.HTTPNotImplemented())
def _action_revert_resize(self, input_dict, req, id):
- return fault.Fault(exc.HTTPNotImplemented())
+ return faults.Fault(exc.HTTPNotImplemented())
def _action_rebuild(self, input_dict, req, id):
- return fault.Fault(exc.HTTPNotImplemented())
+ return faults.Fault(exc.HTTPNotImplemented())
def _action_resize(self, input_dict, req, id):
""" Resizes a given instance to the flavor size requested """
try:
- resize_flavor = input_dict['resize']['flavorId']
+ flavor_id = input_dict['resize']['flavorId']
self.compute_api.resize(req.environ['nova.context'], id,
flavor_id)
except:
return faults.Fault(exc.HTTPUnprocessableEntity())
- return fault.Fault(exc.HTTPAccepted())
+ return faults.Fault(exc.HTTPAccepted())
def _action_reboot(self, input_dict, req, id):
- #TODO(sandy): rebuild/resize not supported.
try:
reboot_type = input_dict['reboot']['type']
except Exception: