From 4e05bb357ae4392ce5af5e88a5f60233d0d28daa Mon Sep 17 00:00:00 2001 From: Mouad Benchchaoui Date: Tue, 4 Mar 2014 16:11:58 +0100 Subject: [PATCH] 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 --- keystoneclient/middleware/auth_token.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keystoneclient/middleware/auth_token.py b/keystoneclient/middleware/auth_token.py index 41de990ef..2afe23d53 100644 --- a/keystoneclient/middleware/auth_token.py +++ b/keystoneclient/middleware/auth_token.py @@ -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)