]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix update snapshot-quotas on delete.
authorJohn Griffith <john.griffith@solidfire.com>
Mon, 29 Apr 2013 17:30:10 +0000 (11:30 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Mon, 29 Apr 2013 17:32:01 +0000 (11:32 -0600)
The merge from stable to RC of the snapshot quota
fixes missed the new CONF usage and as a result the
setting was always ignored on delete and therefore
quotas were not decremented on delete.

This patch changes CONF back to FLAGS for that call and
resolves the issue.

Fixes bug: 1173365

Change-Id: I7af69d5078ebcc5547e08d543a2dcfd0ca3f6c4b

cinder/volume/manager.py

index e6886c14e4b7dd775227ad474fad41863c3631f5..0e3fcb288b73b22d0ba4db639a25058cb8ebb615 100644 (file)
@@ -505,7 +505,7 @@ class VolumeManager(manager.SchedulerDependentManager):
 
         # Get reservations
         try:
-            if CONF.no_snapshot_gb_quota:
+            if FLAGS.no_snapshot_gb_quota:
                 reservations = QUOTAS.reserve(context,
                                               project_id=project_id,
                                               snapshots=-1)