From: ling-yun Date: Thu, 9 Jan 2014 10:49:53 +0000 (+0800) Subject: Remove unused variable in os-extend api X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=f78746062f942b30d73f2575c41dee26b3619f2f;p=openstack-build%2Fcinder-build.git Remove unused variable in os-extend api Temp variable _val in _extend method is not being used, so remove this '_val' variable. Change-Id: I4a3f5e28d1882698a3efd116044c4fddff86c474 Closes-Bug: #1267423 --- diff --git a/cinder/api/contrib/volume_actions.py b/cinder/api/contrib/volume_actions.py index ba432985a..2e87b4e0f 100644 --- a/cinder/api/contrib/volume_actions.py +++ b/cinder/api/contrib/volume_actions.py @@ -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)