Skip to content

Commit

Permalink
Update plugin_manager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cobycloud committed Dec 27, 2024
1 parent 3ba581f commit 51a4423
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/swarmauri/swarmauri/plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 51a4423

Please sign in to comment.