class Resolve(Method):
"""
Lookup a URN and return information about the corresponding object.
- @param slice_urn (string) URN of slice to renew
- @param credentials ([string]) of credentials
+ @param urn
"""
interfaces = ['registry']
]
returns = Parameter(bool, "Success or Failure")
- def call(self, xrn, creds):
- for cred in creds:
- try:
- self.api.auth.check(cred, 'resolve')
- # Make sure it's an authority and not a user
- if cred.get_gid_caller().get_type() != 'authority':
- raise 'NotAuthority'
- found = True
- break
- except:
- continue
-
- if not found:
- raise InsufficientRights('Resolve: Credentials either did not verify, were no longer valid, or did not have appropriate privileges')
-
+ def call(self, xrn):
manager_base = 'sfa.managers'
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, creds)
+ return manager.Resolve(self.api, xrn, '')
return {}
\ No newline at end of file