From e98b554e93a9515aa563984857a39bf6576b6b8f Mon Sep 17 00:00:00 2001 From: Solomon Jacobs Date: Fri, 3 Jan 2025 10:03:02 +0100 Subject: [PATCH] cmk-update-config: remove local variable Change-Id: I3094d7d73e4e97fc494fd8f84ad0908b686c5fc7 --- cmk/update_config/plugins/pre_actions/ui_extensions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmk/update_config/plugins/pre_actions/ui_extensions.py b/cmk/update_config/plugins/pre_actions/ui_extensions.py index a8503181874..48140f08a85 100644 --- a/cmk/update_config/plugins/pre_actions/ui_extensions.py +++ b/cmk/update_config/plugins/pre_actions/ui_extensions.py @@ -47,7 +47,6 @@ def __call__(self, logger: Logger, conflict_mode: ConflictMode) -> None: # no ui stuff to update if path_config is None: return - package_store = PACKAGE_STORE installer, package_map = get_installer_and_package_map(path_config) disabled_packages: set[PackageID] = set() for path, _gui_part, module_name, error in get_failed_plugins(): @@ -63,7 +62,7 @@ def __call__(self, logger: Logger, conflict_mode: ConflictMode) -> None: continue # already dealt with logger.error(error_message_incomp_package(path, package_id, error)) - if disable_incomp_mkp(conflict_mode, package_id, installer, package_store, path_config): + if disable_incomp_mkp(conflict_mode, package_id, installer, PACKAGE_STORE, path_config): disabled_packages.add(package_id) remove_failed_plugin(path) continue