]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Remove unused variable in os-extend api
authorling-yun <zengyunling@huawei.com>
Thu, 9 Jan 2014 10:49:53 +0000 (18:49 +0800)
committerEric Harney <eharney@redhat.com>
Wed, 15 Jan 2014 16:25:11 +0000 (11:25 -0500)
Temp variable _val in _extend method is not being used, so remove this
'_val' variable.

Change-Id: I4a3f5e28d1882698a3efd116044c4fddff86c474
Closes-Bug: #1267423

cinder/api/contrib/volume_actions.py

index ba432985a40a2c17fa7aa54803071247ba3aea83..2e87b4e0faee69dea0a9994309583dd2afc498ff 100644 (file)
@@ -275,7 +275,7 @@ class VolumeActionsController(wsgi.Controller):
             raise webob.exc.HTTPNotFound(explanation=error.msg)
 
         try:
-            _val = int(body['os-extend']['new_size'])
+            int(body['os-extend']['new_size'])
         except (KeyError, ValueError, TypeError):
             msg = _("New volume size must be specified as an integer.")
             raise webob.exc.HTTPBadRequest(explanation=msg)