Fix a bug when setting an algorithm for submetarules. 95/2995/1
authorasteroide <thomas.duval@orange.com>
Tue, 3 Nov 2015 15:00:13 +0000 (16:00 +0100)
committerasteroide <thomas.duval@orange.com>
Tue, 3 Nov 2015 15:00:13 +0000 (16:00 +0100)
Change-Id: Ieef5732ed02dd43cad81688c7201fea5986e6956

moonclient/moonclient/metarules.py

index 9677c5f..a980cd8 100644 (file)
@@ -84,8 +84,8 @@ class AggregationAlgorithmSet(Command):
             authtoken=True)
         algorithm = self.__get_aggregation_algorithm_from_id(data['content'])
         return (
-            ("id", "name", "description"),
-            ((data['content'], algorithm["name"], algorithm["description"]), )
+            ("id",),
+            (algorithm,)
         )