From 195b7fa926ec4480f3b700438ee3e9e696731f93 Mon Sep 17 00:00:00 2001 From: Oleg Gurev Date: Sun, 31 Aug 2025 12:30:16 +0300 Subject: [PATCH] fix: add moonraker-hmi and moonraker-telegram-bot to the blacklist (#720) * Add moonraker-hmi and moonraker-telegram-bot to the blacklist of moonraker service detection function * fix: add "hmi" to SUFFIX_BLACKLIST to prevent instance name conflicts Signed-off-by: Dominik Willner --------- Signed-off-by: Dominik Willner Co-authored-by: dw-0 --- kiauh/core/instance_manager/base_instance.py | 5 +++-- scripts/moonraker.sh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/kiauh/core/instance_manager/base_instance.py b/kiauh/core/instance_manager/base_instance.py index 06f2a27..18af206 100644 --- a/kiauh/core/instance_manager/base_instance.py +++ b/kiauh/core/instance_manager/base_instance.py @@ -16,8 +16,9 @@ from typing import List from utils.fs_utils import get_data_dir -SUFFIX_BLACKLIST: List[str] = ["None", "mcu", "obico", "bambu", "companion"] - +# suffixes that are not allowed to be used for instances +# because they would cause conflicts with other components or are reserved +SUFFIX_BLACKLIST: List[str] = ["None", "mcu", "obico", "bambu", "companion", "hmi"] @dataclass(repr=True) class BaseInstance: diff --git a/scripts/moonraker.sh b/scripts/moonraker.sh index 7c4d8bd..4f2e49d 100644 --- a/scripts/moonraker.sh +++ b/scripts/moonraker.sh @@ -27,7 +27,7 @@ function moonraker_systemd() { ### # any moonraker client that uses "moonraker" in its own name must be blacklisted using # this variable, otherwise they will be falsely recognized as moonraker instances - blacklist="obico" + blacklist="obico|hmi|telegram-bot" ignore="${SYSTEMD}/moonraker-(${blacklist}).service" match="${SYSTEMD}/moonraker(-[0-9a-zA-Z]+)?.service"