From ab55d052677cff374736b2fc9bdd21ff4f1a3aa0 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Mon, 25 May 2020 20:26:20 -0700 Subject: [PATCH] all in on ansible 2.10+ for collections support --- ansible_mitogen/strategy.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ansible_mitogen/strategy.py b/ansible_mitogen/strategy.py index c5e52ff3..d5da22e8 100644 --- a/ansible_mitogen/strategy.py +++ b/ansible_mitogen/strategy.py @@ -54,7 +54,7 @@ except ImportError: Sentinel = None -ANSIBLE_VERSION_MIN = (2, 3) +ANSIBLE_VERSION_MIN = (2, 10) ANSIBLE_VERSION_MAX = (2, 10) NEW_VERSION_MSG = ( @@ -134,8 +134,6 @@ 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'] = kwargs.pop('collection_list', None) klass = ansible_mitogen.loaders.action_loader__get(name, **get_kwargs) if klass: