]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Remove an unused variable in volume/manager.py
authorhuangtianhua <huangtianhua@huawei.com>
Fri, 12 Dec 2014 02:49:49 +0000 (10:49 +0800)
committerHuang Zhiteng <winston.d@gmail.com>
Fri, 12 Dec 2014 04:48:59 +0000 (04:48 +0000)
The 'old_reservations' variable defined in a exception handling block in 'retype' method is never used, this change removes it.

Change-Id: Iaf39ea31bcbd31a90b621b6f33b6aa799f425744

cinder/volume/manager.py

index b930222661eaeba643b66ca4a7212a0bdba1b11c..ab2e68c7c8663e23e1ffdfa90c5702362e257076 100644 (file)
@@ -1406,7 +1406,6 @@ class VolumeManager(manager.SchedulerDependentManager):
                                               project_id=project_id,
                                               **reserve_opts)
         except Exception:
-            old_reservations = None
             self.db.volume_update(context, volume_id, status_update)
             LOG.exception(_LE("Failed to update usages "
                               "while retyping volume."))