Also fix default callback to use ignore_errors param

Rather than the value in the task, which may not be templated.

Related to #18289

(cherry picked from commit d70d279c4e)
This commit is contained in:
James Cammarata 2016-12-21 11:36:09 -06:00
parent 2d8ebbfe8c
commit f89abc705b

View file

@ -65,7 +65,7 @@ class CallbackModule(CallbackBase):
else:
self._display.display("fatal: [%s]: FAILED! => %s" % (result._host.get_name(), self._dump_results(result._result)), color=C.COLOR_ERROR)
if result._task.ignore_errors:
if ignore_errors:
self._display.display("...ignoring", color=C.COLOR_SKIP)
def v2_runner_on_ok(self, result):