added swift_source to ratelimit info calls

Change-Id: I2b4ccb809c0f4505098e261f546f53c27440dd43
This commit is contained in:
John Dickinson 2015-02-15 17:14:31 -08:00
parent 9196c31f64
commit 7acc291129
3 changed files with 5 additions and 1 deletions

View File

@ -101,6 +101,7 @@ TA :ref:`common_tempauth`
DLO :ref:`dynamic-large-objects`
LE :ref:`list_endpoints`
KS :ref:`keystoneauth`
RL :ref:`ratelimit`
======================= =============================

View File

@ -1,3 +1,5 @@
.. _ratelimit:
=============
Rate Limiting
=============

View File

@ -232,7 +232,8 @@ class RateLimitMiddleware(object):
return None
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_info.get('sysmeta', {}).get('global-write-ratelimit')
except ValueError: