X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2Fget_aggregates.py;h=384b0b60e749025aa41e0dce048beb10914bdb26;hb=97cef458386e955dcef86c75d05ffedda79bc054;hp=da9859a9109dc4fe56e2802b8128d226f0251a86;hpb=b6194bb19fd83ac5d76946c541c789a01144fefd;p=sfa.git diff --git a/sfa/methods/get_aggregates.py b/sfa/methods/get_aggregates.py index da9859a9..384b0b60 100644 --- a/sfa/methods/get_aggregates.py +++ b/sfa/methods/get_aggregates.py @@ -39,8 +39,8 @@ class get_aggregates(Method): hrn_list = hrn if not hrn_list: - interfaces = aggregates.interfaces + interfaces = aggregates.interfaces.keys() else: - interfaces = [interface for interface in aggregates.interfaces if interface['hrn'] in hrn_list] + interfaces = [interface for interface in aggregates.interfaces if interface in hrn_list] return interfaces