summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins/__init__.py
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2017-05-30 09:33:33 -0400
committerBrian Coca <brian.coca+git@gmail.com>2017-05-30 11:10:43 -0400
commitbc403934efae7f05834abbedad9f9655b8f4469b (patch)
tree256e73045efd302f580365139c091019eda80abc /lib/ansible/plugins/__init__.py
parentfd5db52fd99c1083a9530fceaf86b5c460b962e7 (diff)
downloadansible-bc403934efae7f05834abbedad9f9655b8f4469b.tar.gz
properlly report plugin name
Diffstat (limited to 'lib/ansible/plugins/__init__.py')
-rw-r--r--lib/ansible/plugins/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ansible/plugins/__init__.py b/lib/ansible/plugins/__init__.py
index 104c2dbf82..57fdf1e7e4 100644
--- a/lib/ansible/plugins/__init__.py
+++ b/lib/ansible/plugins/__init__.py
@@ -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(