X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2FListResources.py;h=a12447f628851e337231b7d056362899bef570e9;hb=288e68cc5b15a8b8bab61623fb0bb087ea1f543f;hp=905a0601346ec50fab30defe8cf75f356ce2b5ef;hpb=f947ffc3bb7509783faee76185ec082c6311ab9f;p=sfa.git diff --git a/sfa/methods/ListResources.py b/sfa/methods/ListResources.py index 905a0601..a12447f6 100644 --- a/sfa/methods/ListResources.py +++ b/sfa/methods/ListResources.py @@ -1,7 +1,5 @@ -import sys import zlib -from sfa.util.faults import * from sfa.util.xrn import urn_to_hrn from sfa.util.method import Method from sfa.util.parameter import Parameter, Mixed @@ -38,9 +36,7 @@ class ListResources(Method): origin_hrn = options.get('origin_hrn', None) if not origin_hrn: origin_hrn = Credential(string=valid_creds[0]).get_gid_caller().get_hrn() - # get manager for this interface - manager = self.api.get_interface_manager() - rspec = manager.get_rspec(self.api, creds, options, call_id) + rspec = self.api.manager.ListResources(self.api, creds, options, call_id) # filter rspec through sfatables if self.api.interface in ['aggregate']: