summaryrefslogtreecommitdiffstats
path: root/moonclient
diff options
context:
space:
mode:
Diffstat (limited to 'moonclient')
-rw-r--r--moonclient/moonclient/metarules.py6
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,)