|
|
|
@ -130,11 +130,13 @@ def wrap_action_loader__get(name, *args, **kwargs):
|
|
|
|
|
action plugins outside the Ansible tree.
|
|
|
|
|
"""
|
|
|
|
|
get_kwargs = {'class_only': True}
|
|
|
|
|
if name in ('fetch',):
|
|
|
|
|
name = 'mitogen_' + name
|
|
|
|
|
if ansible.__version__ >= '2.8':
|
|
|
|
|
get_kwargs['collection_list'] = kwargs.pop('collection_list', None)
|
|
|
|
|
|
|
|
|
|
if name in ('fetch',):
|
|
|
|
|
name = 'mitogen_' + name
|
|
|
|
|
get_kwargs['collection_list'] = None
|
|
|
|
|
|
|
|
|
|
klass = ansible_mitogen.loaders.action_loader__get(name, **get_kwargs)
|
|
|
|
|
if klass:
|
|
|
|
|
bases = (ansible_mitogen.mixins.ActionModuleMixin, klass)
|
|
|
|
|