pylint: volume/api: Fix E0601 error
Fix E0601 used-before-assignment error from pylint. Change-Id: I11e8e69d64cb50d33fa9f7c114b86140f62ad077
This commit is contained in:
parent
6b71118783
commit
c1626d24bb
|
@ -1588,8 +1588,8 @@ class API(base.Base):
|
|||
if rollback:
|
||||
_roll_back_status()
|
||||
|
||||
reservations = None
|
||||
try:
|
||||
reservations = None
|
||||
reserve_opts = {'gigabytes': size_increase}
|
||||
QUOTAS.add_volume_type_opts(context, reserve_opts,
|
||||
volume.volume_type_id)
|
||||
|
|
Loading…
Reference in New Issue