don't know how to fix fix this one - just reverted as my attempt was incorrect
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sat, 2 Oct 2010 18:57:35 +0000 (20:57 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sat, 2 Oct 2010 18:57:35 +0000 (20:57 +0200)
sfa/managers/slice_manager_pl.py

index ccc0c5c..43d3392 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)