Merge "Use total reserved quota value instead of partial"

This commit is contained in:
Zuul 2017-11-01 14:27:36 +00:00 committed by Gerrit Code Review
commit ffc33984d9

View File

@ -979,9 +979,11 @@ class API(base.Base):
total_reserve_opts[key] + value
reservations = QUOTAS.reserve(context, **total_reserve_opts)
except exception.OverQuota as e:
quota_utils.process_reserve_over_quota(context, e,
resource='snapshots',
size=volume.size)
quota_utils.process_reserve_over_quota(
context,
e,
resource='snapshots',
size=total_reserve_opts.get('gigabytes', volume.size))
return reservations