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
This commit is contained in:
ling-yun 2014-01-09 18:49:53 +08:00 committed by Eric Harney
parent 6f1e6f473c
commit f78746062f
1 changed files with 1 additions and 1 deletions

View 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)