added swift_source to ratelimit info calls
Change-Id: I2b4ccb809c0f4505098e261f546f53c27440dd43
This commit is contained in:
@@ -101,6 +101,7 @@ TA :ref:`common_tempauth`
|
|||||||
DLO :ref:`dynamic-large-objects`
|
DLO :ref:`dynamic-large-objects`
|
||||||
LE :ref:`list_endpoints`
|
LE :ref:`list_endpoints`
|
||||||
KS :ref:`keystoneauth`
|
KS :ref:`keystoneauth`
|
||||||
|
RL :ref:`ratelimit`
|
||||||
======================= =============================
|
======================= =============================
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
.. _ratelimit:
|
||||||
|
|
||||||
=============
|
=============
|
||||||
Rate Limiting
|
Rate Limiting
|
||||||
=============
|
=============
|
||||||
|
@@ -232,7 +232,8 @@ class RateLimitMiddleware(object):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
account_info = get_account_info(req.environ, self.app)
|
account_info = get_account_info(req.environ, self.app,
|
||||||
|
swift_source='RL')
|
||||||
account_global_ratelimit = \
|
account_global_ratelimit = \
|
||||||
account_info.get('sysmeta', {}).get('global-write-ratelimit')
|
account_info.get('sysmeta', {}).get('global-write-ratelimit')
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
Reference in New Issue
Block a user