Skip to content

Commit

Permalink
Fix ui-job-scheduler: RuntimeError (dictionary changed size during it…
Browse files Browse the repository at this point in the history
…eration)

CMK-21008

Change-Id: Ic123ecac4a189e0e14dcc61c0c5fd33d8dad2041
  • Loading branch information
LarsMichelsen committed Jan 13, 2025
1 parent 6f9560f commit fc18e74
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cmk/gui/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,18 +287,18 @@ def _get_default_config_from_module_plugins() -> dict[str, Any]:
def _config_plugin_modules() -> list[ModuleType]:
return [
module
for name, module in sys.modules.items()
for name, module in list(sys.modules.items())
if (
name.startswith("cmk.gui.plugins.config.") #
or name.startswith("cmk.gui.cee.plugins.config.") #
name.startswith("cmk.gui.plugins.config.")
or name.startswith("cmk.gui.cee.plugins.config.")
or name.startswith("cmk.gui.cme.plugins.config.")
) #
)
and name
not in (
"cmk.gui.plugins.config.base", #
"cmk.gui.cee.plugins.config.cee", #
"cmk.gui.plugins.config.base",
"cmk.gui.cee.plugins.config.cee",
"cmk.gui.cme.plugins.config.cme",
) #
)
and module is not None
]

Expand Down

0 comments on commit fc18e74

Please sign in to comment.