From 345daed9a470be776793ff3b1497d07ddd4ee76d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Wed, 8 Jun 2022 22:42:05 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D0=BF=D0=BE=D0=B4=D1=81=D1=82=D0=B0=D0=B2=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=D0=BA=D1=83=20=D0=B8=D0=BC=D0=B5=D0=BD=D0=B8=20?= =?UTF-8?q?=D1=81=D0=B5=D1=80=D0=B2=D0=B5=D1=80=D0=B0=20=D0=B2=20=D1=88?= =?UTF-8?q?=D0=B0=D0=B1=D0=BB=D0=BE=D0=BD=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- solution.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/solution.py b/solution.py index aab24f1..1aa91cb 100644 --- a/solution.py +++ b/solution.py @@ -13,7 +13,9 @@ async def write_config_file( with open(path_to_template_file, "r") as file: template = file.read() - config_body: str = template.replace("server_name _;", f"server_name {server_name};") + config_body: str = template.replace( + "server_name _;", f"server_name {server_name}.server.com;" + ) condifg_full_path: str = os.path.abspath(path_for_config) config_filename: str = f"{server_name}.conf"