From 01c0e1de6e45ceb71a94408b7f8a5f3d96293860 Mon Sep 17 00:00:00 2001 From: Benjamin Labrecque Date: Tue, 7 Jul 2026 14:36:28 +0200 Subject: [PATCH] cli: add name to master subs --- cli/src/core/service_creator.py | 4 ++-- services/000-master/current/ioc/AGEBD-CPCL-MASTER_main.subs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cli/src/core/service_creator.py b/cli/src/core/service_creator.py index cf1a4b4..d03dab8 100644 --- a/cli/src/core/service_creator.py +++ b/cli/src/core/service_creator.py @@ -151,14 +151,14 @@ class ServiceCreator: service_name: str, starton: str = "0", autooff: str = "0", - ) -> str: + ) -> None: """ Parses the configuration text and appends a new row before the closing bracket. """ with open(MASTER_IOC_SUBS_FILE) as f: file_content = f.read() - new_row = f' {{ "{{{{ agebd_env }}}}" , "{service_name:<20}" , "{starton}", "{autooff}" }}' + new_row = f' {{ "{{{{ agebd_env }}}}", "{service_name:<20}" , "{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. diff --git a/services/000-master/current/ioc/AGEBD-CPCL-MASTER_main.subs b/services/000-master/current/ioc/AGEBD-CPCL-MASTER_main.subs index 8b15051..4f8cd44 100644 --- a/services/000-master/current/ioc/AGEBD-CPCL-MASTER_main.subs +++ b/services/000-master/current/ioc/AGEBD-CPCL-MASTER_main.subs @@ -29,6 +29,5 @@ file MASTER.template { { "{{ agebd_env }}", "OPTICSFF-X10S" , "0", "0" } # PXII { "{{ agebd_env }}", "OPTICSFF-X11M" , "0", "0" } # SIM { "{{ agebd_env }}", "OPTICSFF-X12S" , "0", "0" } # cSAXS - { "{{ agebd_env }}", "DUMMY-0" , "0", "0" } }