You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mitogen/ansible_mitogen
David Wilson 8cc20856a8 issue #106: support custom new-style modules + 'reexec by default'
Rather than assume any structure about the Python code:

* Delete the exit_json/fail_json monkeypatches.
* Patch SystemExit rather than a magic monkeypatch-thrown exception
* Setup fake cStringIO stdin, stdout, stderr and return those along with
  SystemExit exit status
* Setup _ANSIBLE_ARGS as we used to, since we still want to override
  that with '{}' to prevent accidental import hangs, but also provide
  the same string via sys.stdin.
* Compile the module bytecode once and re-execute it for every
  invocation. May change this back again later, once some benchmarks are
  done.
* Remove the fixups stuff for now, it's handled by ^ above.

Should support any "somewhat new style" Python module, including those
that just give up and dump stuff to stdout directly.
8 years ago
..
plugins ansible: correct sys.path fixup. 8 years ago
__init__.py ansible: restructure to avoid intermediate imports 8 years ago
connection.py issue 106: ansible: make the context name available 8 years ago
helpers.py issue #106: support custom new-style modules + 'reexec by default' 8 years ago
logging.py ansible: Move setLevel() bits together. 8 years ago
mixins.py issue #106: support WANT_JSON modules. 8 years ago
planner.py issue #106: support custom new-style modules + 'reexec by default' 8 years ago
process.py issue #106: partially working BinaryRunner/Planner. 8 years ago
runner.py issue #106: support custom new-style modules + 'reexec by default' 8 years ago
services.py issue #106: get FileService working. 8 years ago
strategy.py ansible: Pass through connection loader kwargs; closes #168 8 years ago