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.
"""
self.setup()
try:
try:
self._send_result(self._run())
except Exception as e:
self._send_result(mitogen.core.CallError(e))
finally:
self.revert()

Loading…
Cancel
Save