Fix bug in aggregation 27/36627/3
authorYujun Zhang <zhang.yujunz@zte.com.cn>
Wed, 28 Jun 2017 07:26:45 +0000 (15:26 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Wed, 28 Jun 2017 09:12:22 +0000 (17:12 +0800)
Change-Id: Ic6613a9ab585894984e1cdab6ead3a84d1c4af9c
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
qtip/ansible_library/plugins/action/aggregate.py
resources/ansible_roles/qtip/tasks/aggregate.yml
tests/data/results/expected.json

index 36ea0ef..1056559 100644 (file)
@@ -52,5 +52,5 @@ def aggregate(hosts, basepath, src):
         'score': score,
         'name': 'compute',
         'description': 'POD Compute QPI',
-        'children': host_results
+        'nodes': host_results
     }
index 904fc5d..7f141c3 100644 (file)
@@ -11,7 +11,7 @@
 
 - name: aggregating results from all tested nodes
   aggregate:
-    group: compute
+    group: SUT
     basepath: "{{ qtip_results }}/current"
     src: "compute.json"
     dest: "qpi.json"
index e77200d..f10e9e5 100644 (file)
@@ -1,6 +1,6 @@
 {
   "score": 150,
-  "children": [
+  "nodes": [
     {
       "name": "host1",
       "score": 100