diff options
author | asteroide <thomas.duval@orange.com> | 2015-12-01 15:00:30 +0100 |
---|---|---|
committer | asteroide <thomas.duval@orange.com> | 2015-12-01 15:00:30 +0100 |
commit | 976d35752576eb91aab995ec95009dd4b8ede1e9 (patch) | |
tree | c8950fec45ed30a3987cb0889689f7fbae268fb4 /moonclient | |
parent | 9c8de66466e1e2259a4791576bd7b708c0323386 (diff) |
Fix an error on aggregation algorithm.
Change-Id: If5387e847c3102d78c71fe3ee194133e20959e1b
Diffstat (limited to 'moonclient')
-rw-r--r-- | moonclient/moonclient/metarules.py | 6 |
1 files changed, 3 insertions, 3 deletions
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,) |