From: huangtianhua Date: Fri, 12 Dec 2014 02:49:49 +0000 (+0800) Subject: Remove an unused variable in volume/manager.py X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=6ef5043363913f685234cabcacc802a7c0284963;p=openstack-build%2Fcinder-build.git Remove an unused variable in volume/manager.py The 'old_reservations' variable defined in a exception handling block in 'retype' method is never used, this change removes it. Change-Id: Iaf39ea31bcbd31a90b621b6f33b6aa799f425744 --- diff --git a/cinder/volume/manager.py b/cinder/volume/manager.py index b93022266..ab2e68c7c 100644 --- a/cinder/volume/manager.py +++ b/cinder/volume/manager.py @@ -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."))