Fix retry logic
When passing retry=True to verify_uuid_token this later should re-call it self when the method fail and this time with retry=False. Change-Id: I7e8f478e5116ac4119df134587f29f3f25ae8a42 Closes-Bug: #1285847
This commit is contained in:
@@ -1216,7 +1216,7 @@ class AuthProtocol(object):
|
|||||||
response.status_code)
|
response.status_code)
|
||||||
if retry:
|
if retry:
|
||||||
self.LOG.info('Retrying validation')
|
self.LOG.info('Retrying validation')
|
||||||
return self._validate_user_token(user_token, env, False)
|
return self.verify_uuid_token(user_token, False)
|
||||||
else:
|
else:
|
||||||
self.LOG.warn("Invalid user token: %s. Keystone response: %s.",
|
self.LOG.warn("Invalid user token: %s. Keystone response: %s.",
|
||||||
user_token, data)
|
user_token, data)
|
||||||
|
Reference in New Issue
Block a user