Skip to content
Snippets Groups Projects
Commit a9d482dd authored by Nathaniel Kofalt's avatar Nathaniel Kofalt
Browse files

Add bson wrapping, fixes #695

parent f221cb65
No related branches found
No related tags found
No related merge requests found
......@@ -161,7 +161,10 @@ def insert_gear(doc):
def remove_gear(_id):
config.db.gears.delete_one({"_id": _id})
result = config.db.gears.delete_one({"_id": bson.ObjectId(_id)})
if result.deleted_count != 1:
raise Exception("Deleted failed " + str(result.raw_result))
def upsert_gear(doc):
gear_tools.validate_manifest(doc['gear'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment