X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=sfa%2Fmethods%2FGetCredential.py;h=50525c20b8469826c33a13b282d904eca08b963f;hb=6d642a325266e2e1508c0c7b0317dd510ba71b81;hp=b645cd415a483e30e62bb0f9b907884e5d28ada2;hpb=2b3c0c7ebe7c55afb14e3ea3aed10f8b1abe01e7;p=sfa.git diff --git a/sfa/methods/GetCredential.py b/sfa/methods/GetCredential.py index b645cd41..50525c20 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.get_credential(self.api, xrn, type) + return self.api.manager.GetCredential(self.api, xrn, type)