From: Thierry Parmentelat <thierry.parmentelat@inria.fr>
Date: Mon, 26 May 2014 09:48:06 +0000 (+0200)
Subject: woraround for undefined 'options' in checkCredentials
X-Git-Tag: sfa-3.1-5~18
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f1d5fa1c83d7507170e28d7c7a5c9676744420b9;p=sfa.git

woraround for undefined 'options' in checkCredentials
---

diff --git a/sfa/trust/auth.py b/sfa/trust/auth.py
index 65ce3fc6..0b4d3372 100644
--- a/sfa/trust/auth.py
+++ b/sfa/trust/auth.py
@@ -70,7 +70,10 @@ class Auth:
         error=[None,None]
 
         # if speaks for gid matches caller cert then we've found a valid
-        # speaks for credential      
+        # speaks for credential
+        ### Thierry : we have no options to pass determine_speaks_for in this context
+        # so only as a workaround here:
+        options={}
         speaks_for_gid = determine_speaks_for(logger, creds, self.peer_cert, \
                                               options, self.trusted_cert_list)