]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Remove unused code in test_admin_actions.py
authorhuangtianhua <huangtianhua@huawei.com>
Fri, 22 Nov 2013 08:21:19 +0000 (16:21 +0800)
committerhuangtianhua <huangtianhua@huawei.com>
Fri, 22 Nov 2013 08:21:19 +0000 (16:21 +0800)
Change-Id: I66fa378005d0e8b181274a47b1746a1fe787e716
Closes-Bug: #1253931

cinder/tests/api/contrib/test_admin_actions.py

index 8ee821477a2bb80e5d71dd504b464dfa7ec613a1..9e517a59fcc00e24374de6fd41d8a11df6c1e309 100644 (file)
@@ -633,7 +633,6 @@ class AdminActionsTest(test.TestCase):
 
     def _migrate_volume_comp_exec(self, ctx, volume, new_volume, error,
                                   expected_status, expected_id):
-        admin_ctx = context.get_admin_context()
         req = webob.Request.blank('/v2/fake/volumes/%s/action' % volume['id'])
         req.method = 'POST'
         req.headers['content-type'] = 'application/json'