From f5759099c69e1885ea72ff1e75794101b179eeac Mon Sep 17 00:00:00 2001 From: Shrenik Date: Thu, 7 Dec 2017 02:36:08 -0800 Subject: 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 --- docker/storperf-master/storperf/storperf_master.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docker') 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): -- cgit 1.2.3-korg