summaryrefslogtreecommitdiffstats
path: root/dovetail
diff options
context:
space:
mode:
Diffstat (limited to 'dovetail')
-rw-r--r--dovetail/report.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/dovetail/report.py b/dovetail/report.py
index 2c6200d3..0d83831d 100644
--- a/dovetail/report.py
+++ b/dovetail/report.py
@@ -322,7 +322,12 @@ class YardstickCrawler(object):
for jsonfile in f:
data = json.loads(jsonfile)
if 1 == data['status']:
- criteria = 'PASS'
+ try:
+ v = data['result'][1]['benchmark']['data']['sla_pass']
+ if 1 == v:
+ criteria = 'PASS'
+ except KeyError as e:
+ self.logger.error('pass flag not found %s', e)
json_results = {'criteria': criteria}
self.logger.debug('Results: %s', str(json_results))
return json_results