From 8d3026b10929d6e37d342f261055418a565928a1 Mon Sep 17 00:00:00 2001 From: MarkusTeufelberger Date: Tue, 29 Dec 2020 17:56:05 +0100 Subject: [PATCH] Add ansible.legacy.setup to be fixed on py3.5 --- ansible_mitogen/planner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible_mitogen/planner.py b/ansible_mitogen/planner.py index 3ae90042..faf8d197 100644 --- a/ansible_mitogen/planner.py +++ b/ansible_mitogen/planner.py @@ -553,7 +553,7 @@ def _fix_py35(invocation, module_source): We replace a relative import in the setup module with the actual full file path This works in vanilla Ansible but not in Mitogen otherwise """ - if invocation.module_name in {'ansible.builtin.setup', 'setup'} and \ + if invocation.module_name in {'ansible.builtin.setup', 'ansible.legacy.setup', 'setup'} and \ invocation.module_path not in invocation._overridden_sources: # in-memory replacement of setup module's relative import # would check for just python3.5 and run this then but we don't know the