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:
parent
6f1e6f473c
commit
f78746062f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user