Set swift_source in account_quotas middleware
Change-Id: Ib54a65a920fc335c1e0a496cb91c0de3003e2cc5
This commit is contained in:
parent
d4b25e3346
commit
c35ab2e1d8
@ -126,6 +126,7 @@ SW :ref:`staticweb`
|
||||
TU :ref:`tempurl`
|
||||
BD :ref:`bulk` (delete)
|
||||
EA :ref:`bulk` (extract)
|
||||
AQ :ref:`account-quotas`
|
||||
CQ :ref:`container-quotas`
|
||||
CS :ref:`container-sync`
|
||||
TA :ref:`common_tempauth`
|
||||
|
@ -4,6 +4,8 @@
|
||||
Middleware
|
||||
**********
|
||||
|
||||
.. _account-quotas:
|
||||
|
||||
Account Quotas
|
||||
==============
|
||||
|
||||
|
@ -107,7 +107,8 @@ class AccountQuotaMiddleware(object):
|
||||
|
||||
content_length = (request.content_length or 0)
|
||||
|
||||
account_info = get_account_info(request.environ, self.app)
|
||||
account_info = get_account_info(request.environ, self.app,
|
||||
swift_source='AQ')
|
||||
if not account_info or not account_info['bytes']:
|
||||
return self.app
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user