summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-01-15 21:05:32 +0000
committerGerrit Code Review <review@openstack.org>2013-01-15 21:05:32 +0000
commite98ec572f0989491ddfcb6de68a3e5bc7d4e0d73 (patch)
treebb10012517704ec6f6297f18547395b8f3ed14b5 /nova/api
parent73d32fedbd4dddc1bec9e036c2c546425bffc92c (diff)
parent4b9bd9112ffc335f33d77f75fc8e5b21fe18f594 (diff)
downloadnova-e98ec572f0989491ddfcb6de68a3e5bc7d4e0d73.tar.gz
nova-e98ec572f0989491ddfcb6de68a3e5bc7d4e0d73.tar.xz
nova-e98ec572f0989491ddfcb6de68a3e5bc7d4e0d73.zip
Merge "Cells: Add some cells support to admin_actions extension"
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/compute/contrib/admin_actions.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/nova/api/openstack/compute/contrib/admin_actions.py b/nova/api/openstack/compute/contrib/admin_actions.py
index f345d9617..fa7836b37 100644
--- a/nova/api/openstack/compute/contrib/admin_actions.py
+++ b/nova/api/openstack/compute/contrib/admin_actions.py
@@ -307,9 +307,7 @@ class AdminActionsController(wsgi.Controller):
try:
instance = self.compute_api.get(context, id)
- self.compute_api.update(context, instance,
- vm_state=state,
- task_state=None)
+ self.compute_api.update_state(context, instance, state)
except exception.InstanceNotFound:
raise exc.HTTPNotFound(_("Server not found"))
except Exception: