diff options
author | mbeierl <mark.beierl@dell.com> | 2017-10-04 10:57:52 -0400 |
---|---|---|
committer | mbeierl <mark.beierl@dell.com> | 2017-10-04 10:57:52 -0400 |
commit | aa2fb5acde380188b063131c5c3c48e637ca6b9f (patch) | |
tree | 2a8ae971623c08d685ccd134a8da7087c6762e74 /docker/storperf-master | |
parent | 41ba13aad1a57fe9b9bcc674cbfe3215e295f177 (diff) |
Fixing test results.
Change-Id: I13ea847491f2758fd2003c0b206ec7a1356f3fb2
JIRA: STORPERF-216
Signed-off-by: mbeierl <mark.beierl@dell.com>
Diffstat (limited to 'docker/storperf-master')
-rw-r--r-- | docker/storperf-master/storperf/db/test_results_db.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/docker/storperf-master/storperf/db/test_results_db.py b/docker/storperf-master/storperf/db/test_results_db.py index 8e9c5ef..3ee09d2 100644 --- a/docker/storperf-master/storperf/db/test_results_db.py +++ b/docker/storperf-master/storperf/db/test_results_db.py @@ -17,17 +17,12 @@ def push_results_to_db(db_url, details, logger): """ url = db_url + "/results" - params = details["report"] - - if logger: - logger.info("popped params= %s" % params) - headers = {'Content-Type': 'application/json'} try: if logger: - jsonified_params = json.dumps(params) + jsonified_params = json.dumps(details) logger.info("Pushing results to %s" % (url)) - logger.debug("Parameters: %s" % jsonified_params[:1024]) + logger.debug("Parameters: %s" % details) r = requests.post(url, data=jsonified_params, headers=headers) if logger: logger.debug(r) @@ -37,5 +32,5 @@ def push_results_to_db(db_url, details, logger): except Exception: if logger: logger.exception("Error [push_results_to_db('%s', '%s')]:" % - (db_url, params)) + (db_url, details)) return None |