From 160dbd86b4344c8afc302634d1835488205789ef Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Wed, 5 Feb 2020 17:20:28 -0800 Subject: [PATCH] keeping track of interpreter discovery vars in case of ansible < 2.8 --- ansible_mitogen/connection.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ansible_mitogen/connection.py b/ansible_mitogen/connection.py index 810eb90b..8ae8682e 100644 --- a/ansible_mitogen/connection.py +++ b/ansible_mitogen/connection.py @@ -505,6 +505,11 @@ class Connection(ansible.plugins.connection.ConnectionBase): # set by `_get_task_vars()` for interpreter discovery _action = None + # redeclaring interpreter discovery vars here in case running ansible < 2.8.0 + _discovered_interpreter_key = None + _discovered_interpreter = False + _discovery_deprecation_warnings = [] + _discovery_warnings = [] def __del__(self): """