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."