X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2FResolveGENI.py;h=e32bf6de6bc2b76c8e4236357442243b6c55475e;hb=cf630d87d633f3861e3ac8a50433fa29ca46a74e;hp=c223bbe8da2fea754fb39716d60baf36680e3d7f;hpb=680d4fc1af88ed631f820545216bee6e7a698f39;p=sfa.git diff --git a/sfa/methods/ResolveGENI.py b/sfa/methods/ResolveGENI.py index c223bbe8..e32bf6de 100644 --- a/sfa/methods/ResolveGENI.py +++ b/sfa/methods/ResolveGENI.py @@ -1,10 +1,8 @@ -from sfa.util.faults import * -from sfa.util.namespace import * from sfa.util.method import Method -from sfa.util.parameter import Parameter -from sfa.trust.credential import Credential -class Resolve(Method): +from sfa.storage.parameter import Parameter + +class ResolveGENI(Method): """ Lookup a URN and return information about the corresponding object. @param urn @@ -18,13 +16,4 @@ class Resolve(Method): returns = Parameter(bool, "Success or Failure") def call(self, xrn): - - manager_base = 'sfa.managers' - - if self.api.interface in ['registry']: - mgr_type = self.api.config.SFA_REGISTRY_TYPE - manager_module = manager_base + ".registry_manager_%s" % mgr_type - manager = __import__(manager_module, fromlist=[manager_base]) - return manager.Resolve(self.api, xrn, '') - - return {} + return self.api.manager.Resolve(self.api, xrn, '')