Merge "Use total reserved quota value instead of partial"
This commit is contained in:
commit
ffc33984d9
@ -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,
|
||||
quota_utils.process_reserve_over_quota(
|
||||
context,
|
||||
e,
|
||||
resource='snapshots',
|
||||
size=volume.size)
|
||||
size=total_reserve_opts.get('gigabytes', volume.size))
|
||||
|
||||
return reservations
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user