~jk0/nova/diagnostics-per-instance

« back to all changes in this revision

Viewing changes to nova/api/openstack/ratelimiting/__init__.py

  • Committer: Josh Kearney
  • Date: 2010-12-29 17:35:49 UTC
  • mfrom: (466.2.36 nova)
  • Revision ID: josh.kearney@rackspace.com-20101229173549-ql7crx0ujxu6v9i7
Merged trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
        If the request should be rate limited, return a 413 status with a
65
65
        Retry-After header giving the time when the request would succeed.
66
66
        """
67
 
        return self.limited_request(req, self.application)
 
67
        return self.rate_limited_request(req, self.application)
68
68
 
69
 
    def limited_request(self, req, application):
 
69
    def rate_limited_request(self, req, application):
70
70
        """Rate limit the request.
71
71
 
72
72
        If the request should be rate limited, return a 413 status with a