cli: add name to master subs
Deploy bin / deploy (push) Successful in 4s
Deploy, build and restart MASTER / deploy (push) Failing after 3s
Deploy agebd python package / deploy (push) Successful in 2s

This commit is contained in:
Benjamin Labrecque
2026-07-07 14:36:28 +02:00
parent 177b741c79
commit 01c0e1de6e
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -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.