From 42f51f6cba1a678d73ad7e86da1b9f5acad8bd71 Mon Sep 17 00:00:00 2001 From: Benjamin Labrecque Date: Tue, 7 Jul 2026 14:39:23 +0200 Subject: [PATCH] cli: add name to master subs --- cli/src/core/service_creator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/src/core/service_creator.py b/cli/src/core/service_creator.py index d03dab8..cc10e5b 100644 --- a/cli/src/core/service_creator.py +++ b/cli/src/core/service_creator.py @@ -158,7 +158,8 @@ class ServiceCreator: with open(MASTER_IOC_SUBS_FILE) as f: file_content = f.read() - new_row = f' {{ "{{{{ agebd_env }}}}", "{service_name:<20}" , "{starton}", "{autooff}" }}' + quoted_service = f'"{service_name}"' + new_row = f' {{ "{{{{ agebd_env }}}}", {quoted_service:<22} , "{starton}", "{autooff}" }}' # Use regex to find the last closing curly brace of the configuration block # This targets the line that contains only a lone closing brace, optional spaces, and maybe a comma/semicolon.