From 51a4423a897bc6fe4c344d8544645d2b3368f361 Mon Sep 17 00:00:00 2001 From: cobycloud <25079070+cobycloud@users.noreply.github.com> Date: Fri, 27 Dec 2024 14:33:11 -0600 Subject: [PATCH] Update plugin_manager.py --- pkgs/swarmauri/swarmauri/plugin_manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/swarmauri/swarmauri/plugin_manager.py b/pkgs/swarmauri/swarmauri/plugin_manager.py index 878649d9..e9ba7319 100644 --- a/pkgs/swarmauri/swarmauri/plugin_manager.py +++ b/pkgs/swarmauri/swarmauri/plugin_manager.py @@ -100,12 +100,12 @@ def validate(self, name, plugin_class, resource_kind, resource_interface): "First-class plugins must be explicitly pre-registered in the registry." ) - def register(self, name, plugin_class, resource_kind): + def register(self, entry_point): """ Pass-through method for first-class plugins, as they are pre-registered. """ logger.debug( - f"Plugin '{name}' is already pre-registered as a first-class plugin. " + f"Plugin '{entry_point.name}' is already pre-registered as a first-class plugin. " "No additional registration is required." ) @@ -145,7 +145,7 @@ def register(self, entry_point): :param entry_points: List of entry points associated with a namespace. """ - logger.debug(f"Attempting second class registration of entry points: '{entry_points}'") + logger.debug(f"Attempting second class registration of entry point: '{entry_point}'") name = entry_point.name namespace = entry_point.group