X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2FCreateGid.py;h=eb001a1c2f6ad514349a50b9e5ad1e3c28417e64;hb=d4bf21b9cd5596d72d5c414444a8f3b9708366b5;hp=b25fbd16eedf461a1ed322a02d2f5f56671c793f;hpb=12c5ac0b379b3c0e3eeb43eacfeacf317a44ec65;p=sfa.git diff --git a/sfa/methods/CreateGid.py b/sfa/methods/CreateGid.py index b25fbd16..eb001a1c 100644 --- a/sfa/methods/CreateGid.py +++ b/sfa/methods/CreateGid.py @@ -1,7 +1,8 @@ from sfa.util.xrn import urn_to_hrn from sfa.util.method import Method -from sfa.util.parameter import Parameter, Mixed + +from sfa.storage.parameter import Parameter, Mixed from sfa.trust.credential import Credential class CreateGid(Method): @@ -43,6 +44,4 @@ class CreateGid(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, xrn, self.name)) - manager = self.api.get_interface_manager() - - return manager.create_gid(self.api, xrn, cert) + return self.api.manager.CreateGid(self.api, xrn, cert)