Skip to content

Commit

Permalink
Simplify CEE registration
Browse files Browse the repository at this point in the history
Change-Id: I393c6fa688c3c7223ba9e58f7328a7b4fb20b036
  • Loading branch information
LarsMichelsen committed Nov 17, 2023
1 parent 39aebf6 commit fc0ee9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmk/gui/main_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fc0ee9f

Please sign in to comment.