Also fix default callback to use ignore_errors param

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

Related to #18289
This commit is contained in:
James Cammarata 2016-12-21 11:36:09 -06:00
parent 446888ef41
commit d70d279c4e

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):