X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=sfa%2Fmethods%2FGetCredential.py;h=22d021cd60b42276d01cada3dd54eb73ff45eafe;hb=03e7c33f7a3d62513a77149429b6cdd5e25cba75;hp=d966dd3f25302f1f7ec75d1d7fb6de03bfde106f;hpb=19dff4d49e0bf51857903d759947d0a1b01229a4;p=sfa.git diff --git a/sfa/methods/GetCredential.py b/sfa/methods/GetCredential.py index d966dd3f..22d021cd 100644 --- a/sfa/methods/GetCredential.py +++ b/sfa/methods/GetCredential.py @@ -1,8 +1,10 @@ from sfa.util.xrn import urn_to_hrn from sfa.util.method import Method -from sfa.util.parameter import Parameter, Mixed + from sfa.trust.credential import Credential +from sfa.storage.parameter import Parameter, Mixed + class GetCredential(Method): """ Retrive a credential for an object @@ -42,5 +44,5 @@ class GetCredential(Method): origin_hrn = Credential(string=valid_creds[0]).get_gid_caller().get_hrn() self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, hrn, self.name)) - return self.api.manager.GetCredential(self.api, xrn, type) + return self.api.manager.GetCredential(self.api, xrn, type, self.api.auth.client_gid.get_urn())