Skip to content

Commit

Permalink
Fix update snapshot-quotas on delete.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
j-griffith committed Apr 29, 2013
1 parent 6008be0 commit 93247d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cinder/volume/manager.py
Expand Up @@ -505,7 +505,7 @@ def delete_snapshot(self, context, snapshot_id):

# 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)
Expand Down

0 comments on commit 93247d2

Please sign in to comment.