summaryrefslogtreecommitdiffstats
path: root/scripts/mongo2elastic_format.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mongo2elastic_format.py')
-rw-r--r--scripts/mongo2elastic_format.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/mongo2elastic_format.py b/scripts/mongo2elastic_format.py
index 0b036e3..ef485ba 100644
--- a/scripts/mongo2elastic_format.py
+++ b/scripts/mongo2elastic_format.py
@@ -62,7 +62,14 @@ def format_rally(testcase):
-> details.tests
-> details.success_percentage
"""
- summary = testcase['details']['summary']
+ details = testcase['details']
+ summary = None
+ for item in details:
+ if 'summary' in item:
+ summary = item['summary']
+
+ if not summary:
+ return False
testcase['details'] = {
'duration': summary['duration'],