From 177b741c79e49744aae300fd68ad97787ad97c67 Mon Sep 17 00:00:00 2001 From: Benjamin Labrecque Date: Tue, 7 Jul 2026 14:35:09 +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 b7c3b6a..cf1a4b4 100644 --- a/cli/src/core/service_creator.py +++ b/cli/src/core/service_creator.py @@ -169,7 +169,8 @@ class ServiceCreator: updated_content = re.sub( pattern, f"\n{new_row}\n\\1", file_content, count=1, flags=re.MULTILINE ) - return updated_content + with open(MASTER_IOC_SUBS_FILE, "w") as f: + f.write(updated_content) else: raise ValueError( "Could not locate the closing structure format '}' inside the configuration."