diff --git a/beat/core/execution/docker.py b/beat/core/execution/docker.py index 6cc3e701387d370f91fe8d1a10345cd23f1da054..02ee55bab8b3528f3532bf234e76a408f8e8f0a0 100644 --- a/beat/core/execution/docker.py +++ b/beat/core/execution/docker.py @@ -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 try: