fixes
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sat, 2 Oct 2010 06:53:28 +0000 (08:53 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sat, 2 Oct 2010 06:53:28 +0000 (08:53 +0200)
sfa/managers/slice_manager_pl.py
sfa/methods/get_trusted_certs.py

index 43d3392..ccc0c5c 100644 (file)
@@ -268,8 +268,8 @@ def get_slices(api, creds):
             return slices    
 
     # get the callers hrn
-    valid_cred = api.auth.checkCredentials(creds, 'listslices', hrn)[0]
     caller_hrn = Credential(string=valid_cred).get_gid_caller().get_hrn()
+    valid_cred = api.auth.checkCredentials(creds, 'listslices', caller_hrn)[0]
 
     # attempt to use delegated credential first
     credential = api.getDelegatedCredential(creds)
index c0871a1..05addc9 100644 (file)
@@ -23,7 +23,7 @@ class get_trusted_certs(Method):
         # If cred is not specified just return the gid for this interface.
         # This is true when when a peer is attempting to initiate federation
         # with this interface 
-        sfaloging.logger.debug("get_trusted_certs: %r"%cred)
+        sfalogging.logger.debug("get_trusted_certs: %r"%cred)
         if not cred:
             gid_strings = []
             for gid in self.api.auth.trusted_cert_list: