From 9c269be4ac540ca7ed82d8201f7e1ac55c50ac40 Mon Sep 17 00:00:00 2001
From: Samuel Gaist <samuel.gaist@idiap.ch>
Date: Wed, 20 Mar 2019 11:53:57 +0100
Subject: [PATCH] [execution][docker] Import simplejson as json to make it easy
 to swap

---
 beat/core/execution/docker.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/beat/core/execution/docker.py b/beat/core/execution/docker.py
index 6cc3e701..02ee55ba 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:
-- 
GitLab