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:
Mouad Benchchaoui
2014-03-04 16:11:58 +01:00
parent 19356011e6
commit 4e05bb357a

View File

@@ -1216,7 +1216,7 @@ class AuthProtocol(object):
response.status_code)
if retry:
self.LOG.info('Retrying validation')
return self._validate_user_token(user_token, env, False)
return self.verify_uuid_token(user_token, False)
else:
self.LOG.warn("Invalid user token: %s. Keystone response: %s.",
user_token, data)