From 502b672376a21b60ae932acc7d756f3ff85295f6 Mon Sep 17 00:00:00 2001 From: Kravchenko Pavel Date: Wed, 8 May 2013 18:12:35 +0300 Subject: Removes unnecessary check for admin context in evacuate. Fix for bug 1177413 Change-Id: Ia293d0b55e30e57e1b4340d2bd423fac82902ced --- nova/api/openstack/compute/contrib/evacuate.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'nova/api') diff --git a/nova/api/openstack/compute/contrib/evacuate.py b/nova/api/openstack/compute/contrib/evacuate.py index 275cec904..587e231d1 100644 --- a/nova/api/openstack/compute/contrib/evacuate.py +++ b/nova/api/openstack/compute/contrib/evacuate.py @@ -39,9 +39,6 @@ class Controller(wsgi.Controller): to a new one. """ context = req.environ["nova.context"] - if not context.is_admin: - msg = _("Instance evacuate is admin only functionality") - raise exc.HTTPForbidden(explanation=msg) authorize(context) try: -- cgit