From fc0ee9f9b2440b31389edd4892c21e477c548a05 Mon Sep 17 00:00:00 2001 From: Lars Michelsen Date: Fri, 17 Nov 2023 09:58:21 +0100 Subject: [PATCH] Simplify CEE registration Change-Id: I393c6fa688c3c7223ba9e58f7328a7b4fb20b036 --- cmk/gui/main_modules.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmk/gui/main_modules.py b/cmk/gui/main_modules.py index 5a0855669c7..84bb2e7c306 100644 --- a/cmk/gui/main_modules.py +++ b/cmk/gui/main_modules.py @@ -37,7 +37,9 @@ def suppress_module_not_found(name: str) -> Iterator[None]: import cmk.gui.raw.plugins.main_modules # pylint: disable=unused-import,cmk-module-layer-violation with suppress_module_not_found("cmk.gui.cee"): - import cmk.gui.cee.plugins.main_modules # pylint: disable=no-name-in-module,unused-import,cmk-module-layer-violation + import cmk.gui.cee.registration # pylint: disable=no-name-in-module,cmk-module-layer-violation + + cmk.gui.cee.registration.register() with suppress_module_not_found("cmk.gui.cme"): import cmk.gui.cme.registration # pylint: disable=no-name-in-module,cmk-module-layer-violation