ansible: forward exceptions as job results too.

Ref #191.
pull/193/head
David Wilson 7 years ago
parent c8ce3059d1
commit 9eacf8faa9

@ -157,8 +157,11 @@ class Runner(object):
Module result dictionary. Module result dictionary.
""" """
self.setup() self.setup()
try:
try: try:
self._send_result(self._run()) self._send_result(self._run())
except Exception as e:
self._send_result(mitogen.core.CallError(e))
finally: finally:
self.revert() self.revert()

Loading…
Cancel
Save