fix: remove collection_list when action plugin is fetch

pull/972/head
gboutry 2 years ago
parent 572636a9d3
commit 1ed93f2f20
No known key found for this signature in database
GPG Key ID: DC4A52BE8F2B0AD1

@ -88,7 +88,9 @@ def wrap_action_loader__get(name, *args, **kwargs):
get_kwargs = {'class_only': True}
if name in ('fetch',):
name = 'mitogen_' + name
get_kwargs['collection_list'] = kwargs.pop('collection_list', None)
get_kwargs['collection_list'] = None
else:
get_kwargs['collection_list'] = kwargs.pop('collection_list', None)
klass = ansible_mitogen.loaders.action_loader__get(name, **get_kwargs)
if klass:

@ -22,6 +22,7 @@ v0.3.4.dev0
* :gh:issue:`929` Support Ansible 6 and ansible-core 2.13
* :gh:issue:`832` Fix runtime error when using the ansible.builtin.dnf module multiple times
* :gh:issue:`971` Fix ansible action plugin lookup when resolving fetch inside a collection
v0.3.3 (2022-06-03)
-------------------

Loading…
Cancel
Save