summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dovetail/report.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/dovetail/report.py b/dovetail/report.py
index f1708574..be8d0827 100644
--- a/dovetail/report.py
+++ b/dovetail/report.py
@@ -324,7 +324,8 @@ class YardstickCrawler(Crawler):
for jsonfile in f:
data = json.loads(jsonfile)
try:
- criteria = data['result']['criteria']
+ criteria = dt_utils.get_value_from_dict("result.criteria",
+ data)
if criteria == 'PASS':
valid_tc = testcase.validate_testcase()
details = data['result']['testcases'][valid_tc]