summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorShrenik <shrenik.jain@research.iiit.ac.in>2017-12-07 02:36:08 -0800
committerShrenik Jain <shrenik.jain@research.iiit.ac.in>2017-12-17 21:19:01 +0000
commitf5759099c69e1885ea72ff1e75794101b179eeac (patch)
treeab3435d8e875f81a1373993957922dfebb6a583b /docker
parentcc5407ad056942815ce412ce434dcffe62c96109 (diff)
Resolve error in fetching metrics
There seems to be an update in the json format used. The data is present at ['details']['metrics'] rather than ['metrics'] JIRA: STORPERF-229 Change-Id: I7c3ee319ef4a128c33f5e2a26e10b6ff03a471d3 Signed-off-by: Shrenik <shrenik.jain@research.iiit.ac.in>
Diffstat (limited to 'docker')
-rw-r--r--docker/storperf-master/storperf/storperf_master.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/storperf-master/storperf/storperf_master.py b/docker/storperf-master/storperf/storperf_master.py
index 914fc26..a795faa 100644
--- a/docker/storperf-master/storperf/storperf_master.py
+++ b/docker/storperf-master/storperf/storperf_master.py
@@ -407,7 +407,7 @@ class StorPerfMaster(object):
workload_params = self.job_db.fetch_workload_params(job_id)
if 'report' in workload_params:
report = workload_params['report']
- return report['metrics']
+ return report['details']['metrics']
return {}
def fetch_metadata(self, job_id):