Skip to content

Commit

Permalink
fix: remove collection_list when action plugin is fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
gboutry committed Nov 3, 2022
1 parent a154b7b commit 3c10952
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ansible_mitogen/strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ def wrap_action_loader__get(name, *args, **kwargs):
get_kwargs = {'class_only': True}
if name in ('fetch',):
name = 'mitogen_' + name
if ansible.__version__ >= '2.8':
get_kwargs['collection_list'] = None
elif ansible.__version__ >= '2.8':
get_kwargs['collection_list'] = kwargs.pop('collection_list', None)

klass = ansible_mitogen.loaders.action_loader__get(name, **get_kwargs)
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ Release Notes
To avail of fixes in an unreleased version, please download a ZIP file
`directly from GitHub <https://github.com/dw/mitogen/>`_.

v0.2.11dev0
-----------

* :gh:issue:`971` Fix ansible action plugin lookup when resolving fetch inside a collection


v0.2.10 (2021-10-28)
--------------------

Expand Down

0 comments on commit 3c10952

Please sign in to comment.