Skip to content

Commit 8a97a75

Browse files
mascihush-hush
authored andcommitted
don't post if ignore_errors is True
1 parent 557c34f commit 8a97a75

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

datadog_callback.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ def format_result(res):
176176

177177
### Ansible callbacks ###
178178
def runner_on_failed(self, host, res, ignore_errors=False):
179+
# don't post anything if user asked to ignore errors
180+
if ignore_errors:
181+
return
182+
179183
event_text, module_name_tag = self.format_result(res)
180184
self.send_task_event(
181185
'Ansible task failed on "{0}"'.format(host),

0 commit comments

Comments
 (0)