mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-08 17:34:01 -07:00
properlly report plugin name
This commit is contained in:
parent
fd5db52fd9
commit
bc403934ef
2 changed files with 7 additions and 4 deletions
|
@ -380,6 +380,7 @@ class PluginLoader:
|
|||
|
||||
# set extra info on the module, in case we want it later
|
||||
setattr(obj, '_original_path', path)
|
||||
setattr(obj, '_load_name', name)
|
||||
return obj
|
||||
|
||||
def _display_plugin_load(self, class_name, name, searched_paths, path, found_in_cache=None, class_only=None):
|
||||
|
@ -444,6 +445,7 @@ class PluginLoader:
|
|||
|
||||
# set extra info on the module, in case we want it later
|
||||
setattr(obj, '_original_path', path)
|
||||
setattr(obj, '_load_name', name)
|
||||
yield obj
|
||||
|
||||
action_loader = PluginLoader(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue