Set swift_source in account_quotas middleware

Change-Id: Ib54a65a920fc335c1e0a496cb91c0de3003e2cc5
This commit is contained in:
Tim Burke 2019-12-05 14:18:18 -08:00
parent d4b25e3346
commit c35ab2e1d8
3 changed files with 5 additions and 1 deletions
doc/source
swift/common/middleware

@ -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: