Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
moreati committed Dec 19, 2024
1 parent e8005ec commit eb6c038
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion ansible_mitogen/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
from ansible.module_utils.common.text.converters import to_bytes, to_text
from ansible.module_utils.six.moves import shlex_quote
from ansible.parsing.utils.jsonify import jsonify
from ansible.utils.display import Display

import mitogen.core
import mitogen.select
Expand All @@ -54,6 +55,8 @@
import ansible_mitogen.utils.unsafe


display = Display()

LOG = logging.getLogger(__name__)


Expand Down Expand Up @@ -107,10 +110,19 @@ def __init__(self, task, connection, *args, **kwargs):
self._rediscovered_python = False
# redeclaring interpreter discovery vars here in case running ansible < 2.8.0
self._discovered_interpreter_key = None
self._discovered_interpreter = False
self._discovered_interpreterr = False
self._discovery_deprecation_warnings = []
self._discovery_warnings = []

@property
def _discovered_interpreter(self):
return self._discovered_interpreterr

@_discovered_interpreter.setter
def _discovered_interpreter(self, value):
display.warning('%r %s' % (value, traceback.format_stack()))
self._discovered_interpreterr = value

def run(self, tmp=None, task_vars=None):
"""
Override run() to notify Connection of task-specific data, so it has a
Expand Down

0 comments on commit eb6c038

Please sign in to comment.