From: Morgan Richomme Date: Wed, 14 Oct 2015 08:50:49 +0000 (+0200) Subject: Do not check key in json file X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=ace5bdeae17058ebeb04dbbb944f8cd5858ee43b;p=releng-testresults.git Do not check key in json file to avoid warning due to . in key in Rally reports JIRA: RELENG-47 Change-Id: I204714311b9838ec09086950504046be7a29339d Signed-off-by: Morgan Richomme --- diff --git a/result_collection_api/resources/handlers.py b/result_collection_api/resources/handlers.py index f8b26d0..27204a5 100644 --- a/result_collection_api/resources/handlers.py +++ b/result_collection_api/resources/handlers.py @@ -624,7 +624,8 @@ class TestResultsHandler(GenericApiHandler): test_result = TestResult.test_result_from_dict(self.json_args) test_result.creation_date = datetime.now() - future = self.db.test_results.insert(test_result.format()) + future = self.db.test_results.insert(test_result.format(), + check_keys=False) result = yield future test_result._id = result