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

View File

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

View File

@@ -4,6 +4,8 @@
Middleware
**********
.. _account-quotas:
Account Quotas
==============

View File

@@ -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:
Reference in New Issue
openstack/swift
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.