diff options
author | Milo Casagrande <milo.casagrande@linaro.org> | 2015-02-02 16:31:26 +0100 |
---|---|---|
committer | Milo Casagrande <milo.casagrande@linaro.org> | 2015-02-02 16:31:26 +0100 |
commit | 10e54d90e5cf73f7c6da25f12685c035dc94d471 (patch) | |
tree | ce6663a71ebca4e31a38ae98b438e8d5c442f125 /app/utils/bisect | |
parent | b10e4e36e5a6267c64fd223b747a7b3ba2c1e8fc (diff) |
Use new save function.
Change-Id: Ibe5e382aaccf864eee6e47332e0d4787ddccfb75
Diffstat (limited to 'app/utils/bisect')
-rw-r--r-- | app/utils/bisect/boot.py | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/app/utils/bisect/boot.py b/app/utils/bisect/boot.py index 89f1306..aa5fb5b 100644 --- a/app/utils/bisect/boot.py +++ b/app/utils/bisect/boot.py @@ -82,13 +82,7 @@ def execute_boot_bisection(doc_id, db_options, fields=None): else: bisect_doc = _find_boot_bisect_data( obj_id, start_doc, database, db_options) - - return_code, saved_id = utils.db.save( - database, bisect_doc, manipulate=True) - if return_code == 201: - bisect_doc.id = saved_id - else: - utils.LOG.error("Error saving bisect data %s", doc_id) + bcommon.save_bisect_doc(database, bisect_doc, doc_id) bisect_doc = bcommon.update_doc_fields(bisect_doc, fields) result = [ @@ -310,12 +304,7 @@ def execute_boot_bisection_compared_to( ) bisect_doc.bisect_data = all_valid_docs - return_code, saved_id = utils.db.save( - database, bisect_doc, manipulate=True) - if return_code == 201: - bisect_doc.id = saved_id - else: - utils.LOG.error("Error saving compared-bisect data %s", doc_id) + bcommon.save_bisect_doc(database, bisect_doc, doc_id) bisect_doc = bcommon.update_doc_fields(bisect_doc, fields) result = [ |