From 4fda5a2f0d46cd5247a6975d89a991192637a465 Mon Sep 17 00:00:00 2001
From: Sinisa Veseli <sveseli@aps.anl.gov>
Date: Tue, 21 Apr 2015 23:10:43 +0000
Subject: [PATCH] updated object cache method call

---
 .../dm/common/service/auth/authorizationPrincipalManager.py   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/python/dm/common/service/auth/authorizationPrincipalManager.py b/src/python/dm/common/service/auth/authorizationPrincipalManager.py
index 1c205261..6dc313f1 100755
--- a/src/python/dm/common/service/auth/authorizationPrincipalManager.py
+++ b/src/python/dm/common/service/auth/authorizationPrincipalManager.py
@@ -73,9 +73,7 @@ class AuthorizationPrincipalManager(DmObjectManager, Singleton):
         # First try cache.
         #self.logger.debug('Trying username %s from the cache' % username)
         principal = None
-        principalTuple = self.objectCache.get(username)
-        if principalTuple is not None:
-            (id, principal, updateTime, expirationTime) = principalTuple
+        principal = self.objectCache.get(username)
         if principal is None:
             # Try principal retriever
             principal = self.principalRetriever.getAuthorizationPrincipal(username)
-- 
GitLab