mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 21:30:22 -07:00
Create a plugin loader system
This commit is contained in:
parent
000d3832cc
commit
e05e514861
9 changed files with 118 additions and 85 deletions
|
@ -51,7 +51,7 @@ class Task(object):
|
|||
# code to allow "with_glob" and to reference a lookup plugin named glob
|
||||
elif x.startswith("with_"):
|
||||
plugin_name = x.replace("with_","")
|
||||
if plugin_name in play.playbook.lookup_plugins_list:
|
||||
if plugin_name in utils.plugins.lookup_loader:
|
||||
ds['items_lookup_plugin'] = plugin_name
|
||||
ds['items_lookup_terms'] = ds[x]
|
||||
ds.pop(x)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue