From 6ef5043363913f685234cabcacc802a7c0284963 Mon Sep 17 00:00:00 2001 From: huangtianhua Date: Fri, 12 Dec 2014 10:49:49 +0800 Subject: [PATCH] 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 --- cinder/volume/manager.py | 1 - 1 file changed, 1 deletion(-) 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.")) -- 2.45.2