ISSUE 25470 - update patch from review details

This commit is contained in:
James Hogarth 2017-08-04 21:38:42 +01:00 committed by Toshio Kuratomi
parent fc274bda8a
commit 7ec34b4cb2

View file

@ -132,7 +132,7 @@ class CallbackModule(CallbackBase):
task_data = self._task_data[task_uuid]
if self._fail_on_change == 'true' and status == 'changed':
if self._fail_on_change == 'true' and status == 'ok' and result._result.get('changed', False):
status = 'failed'
if status == 'failed' and 'EXPECTED FAILURE' in task_data.name:
@ -230,9 +230,6 @@ class CallbackModule(CallbackBase):
self._finish_task('failed', result)
def v2_runner_on_ok(self, result):
if result._result.get('changed', False):
self._finish_task('changed', result)
else:
self._finish_task('ok', result)
def v2_runner_on_skipped(self, result):