From 8f9848933657fb2050ae72afcbc888c89c0e924f Mon Sep 17 00:00:00 2001 From: chabisik Date: Fri, 1 Jan 2021 21:34:21 +0100 Subject: [PATCH] mise a jour --- .../forContainerNet/server/bootstrap_client.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfiles/forContainerNet/server/bootstrap_client.py b/Dockerfiles/forContainerNet/server/bootstrap_client.py index 25637b8..d2f06a7 100755 --- a/Dockerfiles/forContainerNet/server/bootstrap_client.py +++ b/Dockerfiles/forContainerNet/server/bootstrap_client.py @@ -32,19 +32,19 @@ def retrieve_config(): def config_json_to_string(json_config): config = "" if "local_ip" in json_config: - config += "--local_ip "+json_config["local_ip"] + config += "--local_ip "+json_config["local_ip"]+" " if "local_port" in json_config: - config += "--local_port "+str(json_config["local_port"]) + config += "--local_port "+str(json_config["local_port"])+" " if "local_name" in json_config: - config += "--local_name "+json_config["local_name"] + config += "--local_name "+json_config["local_name"]+" " if "remote_ip" in json_config: - config += "--remote_ip "+json_config["remote_ip"] + config += "--remote_ip "+json_config["remote_ip"]+" " if "remote_port" in json_config: - config += "--remote_port "+str(json_config["remote_port"]) + config += "--remote_port "+str(json_config["remote_port"])+" " if "remote_name" in json_config: - config += "--remote_name "+json_config["remote_name"] + config += "--remote_name "+json_config["remote_name"]+" " if "send_period" in json_config: - config += "--send_period "+str(json_config["send_period"]) - return config + config += "--send_period "+str(json_config["send_period"])+" " + return config.strip() retrieve_config()