Merge "Fix rate semaphore for keystoneclient"

This commit is contained in:
Zuul 2019-03-05 14:19:58 +00:00 committed by Gerrit Code Review
commit bde07bc95b

View File

@ -217,6 +217,8 @@ class Adapter(object):
kwargs.setdefault('client_name', self.client_name)
if self.client_version:
kwargs.setdefault('client_version', self.client_version)
if self._rate_semaphore:
kwargs.setdefault('rate_semaphore', self._rate_semaphore)
else:
warnings.warn('Using keystoneclient sessions has been deprecated. '
@ -232,8 +234,6 @@ class Adapter(object):
if self.raise_exc is not None:
kwargs.setdefault('raise_exc', self.raise_exc)
kwargs.setdefault('rate_semaphore', self._rate_semaphore)
return self.session.request(url, method, **kwargs)
def get_token(self, auth=None):