Commit 9c269be4 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[execution][docker] Import simplejson as json to make it easy to swap

parent 70ce1646
......@@ -46,7 +46,7 @@ import os
import shutil
import logging
import requests
import simplejson
import simplejson as json
from beat.backend.python.execution import MessageHandler
......@@ -190,13 +190,13 @@ class DockerExecutor(RemoteExecutor):
json_path = os.path.join(root_folder, db_name + ".json")
with open(json_path, "r") as f:
db_data = simplejson.load(f)
db_data = json.load(f)
database_paths[db_name] = db_data["root_folder"]
db_data["root_folder"] = os.path.join("/databases", db_name)
with open(json_path, "w") as f:
simplejson.dump(db_data, f, indent=4)
json.dump(db_data, f, indent=4)
# Determine the docker image to use for the databases
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment