diff options
author | valentin boucher <valentin.boucher@orange.com> | 2017-05-22 13:09:56 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-05-22 13:09:56 +0000 |
commit | d71eadbd067f590ab0f456dfcd603ce183b3779c (patch) | |
tree | 642479f9e195b32e628781a4969244014032253e /functest/utils/functest_utils.py | |
parent | 3a464d056668e66d8ea9d1786f17a5afb033fb6e (diff) | |
parent | bdf5048343f9d3f419bbd16dfb219fa79a9ad694 (diff) |
Merge "Sort keys when dumping json"
Diffstat (limited to 'functest/utils/functest_utils.py')
-rw-r--r-- | functest/utils/functest_utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/functest/utils/functest_utils.py b/functest/utils/functest_utils.py index 284c7971..dc20eea1 100644 --- a/functest/utils/functest_utils.py +++ b/functest/utils/functest_utils.py @@ -221,7 +221,8 @@ def push_results_to_db(project, case_name, error = None headers = {'Content-Type': 'application/json'} try: - r = requests.post(url, data=json.dumps(params), headers=headers) + r = requests.post(url, data=json.dumps(params, sort_keys=True), + headers=headers) logger.debug(r) r.raise_for_status() except requests.RequestException as exc: |