From 976d35752576eb91aab995ec95009dd4b8ede1e9 Mon Sep 17 00:00:00 2001 From: asteroide Date: Tue, 1 Dec 2015 15:00:30 +0100 Subject: Fix an error on aggregation algorithm. Change-Id: If5387e847c3102d78c71fe3ee194133e20959e1b --- moonclient/moonclient/metarules.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'moonclient') diff --git a/moonclient/moonclient/metarules.py b/moonclient/moonclient/metarules.py index a980cd85..8938f890 100644 --- a/moonclient/moonclient/metarules.py +++ b/moonclient/moonclient/metarules.py @@ -36,10 +36,10 @@ class AggregationAlgorithmsList(Lister): data = self.app.get_url("/v3/OS-MOON/intra_extensions/{}/aggregation_algorithm".format( parsed_args.intraextension), authtoken=True) - algorithm = self.__get_aggregation_algorithm_from_id(data['content']) + algorithm = self.__get_aggregation_algorithm_from_id(data['aggregation_algorithm']) return ( ("id", "name", "description"), - ((data['content'], algorithm["name"], algorithm["description"]), ) + ((data['aggregation_algorithm'], algorithm["name"], algorithm["description"]), ) ) @@ -82,7 +82,7 @@ class AggregationAlgorithmSet(Command): "aggregation_algorithm_id": parsed_args.aggregation_algorithm_id, "aggregation_algorithm_description": parsed_args.description}, authtoken=True) - algorithm = self.__get_aggregation_algorithm_from_id(data['content']) + algorithm = self.__get_aggregation_algorithm_from_id(data['aggregation_algorithm']) return ( ("id",), (algorithm,) -- cgit 1.2.3-korg