X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2Fget_aggregates.py;h=0ed15f345e9586f2a55228a468660438f19c1f2a;hb=95aaadd69f701b9cc39e8a8484f9dbd755636ccc;hp=384b0b60e749025aa41e0dce048beb10914bdb26;hpb=dcd5d06abd4b5b07320f8fef464c035c7a2fa9ef;p=sfa.git diff --git a/sfa/methods/get_aggregates.py b/sfa/methods/get_aggregates.py index 384b0b60..0ed15f34 100644 --- a/sfa/methods/get_aggregates.py +++ b/sfa/methods/get_aggregates.py @@ -31,16 +31,4 @@ class get_aggregates(Method): hrn, type = urn_to_hrn(xrn) self.api.auth.check(cred, 'list') aggregates = Aggregates(self.api) - hrn_list = [] - if hrn: - if isinstance(hrn, StringTypes): - hrn_list = [hrn] - elif isinstance(hrn, list): - hrn_list = hrn - - if not hrn_list: - interfaces = aggregates.interfaces.keys() - else: - interfaces = [interface for interface in aggregates.interfaces if interface in hrn_list] - - return interfaces + return aggregates.interfaces.values()