ansible: forward exceptions as job results too.

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

@ -158,7 +158,10 @@ class Runner(object):
""" """
self.setup() self.setup()
try: try:
self._send_result(self._run()) try:
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