Browse Source

Merge "Fix rate semaphore for keystoneclient"

Zuul 1 month ago
parent
commit
bde07bc95b
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      keystoneauth1/adapter.py

+ 2
- 2
keystoneauth1/adapter.py View File

@@ -217,6 +217,8 @@ class Adapter(object):
217 217
                 kwargs.setdefault('client_name', self.client_name)
218 218
             if self.client_version:
219 219
                 kwargs.setdefault('client_version', self.client_version)
220
+            if self._rate_semaphore:
221
+                kwargs.setdefault('rate_semaphore', self._rate_semaphore)
220 222
 
221 223
         else:
222 224
             warnings.warn('Using keystoneclient sessions has been deprecated. '
@@ -232,8 +234,6 @@ class Adapter(object):
232 234
         if self.raise_exc is not None:
233 235
             kwargs.setdefault('raise_exc', self.raise_exc)
234 236
 
235
-        kwargs.setdefault('rate_semaphore', self._rate_semaphore)
236
-
237 237
         return self.session.request(url, method, **kwargs)
238 238
 
239 239
     def get_token(self, auth=None):

Loading…
Cancel
Save