From f78746062f942b30d73f2575c41dee26b3619f2f Mon Sep 17 00:00:00 2001 From: ling-yun Date: Thu, 9 Jan 2014 18:49:53 +0800 Subject: [PATCH] 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 --- cinder/api/contrib/volume_actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.45.2