mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Remove runner_on_error callback that is never used.
This commit is contained in:
@@ -91,9 +91,6 @@ class CallbackModule(object):
|
||||
def runner_on_ok(self, host, res):
|
||||
pass
|
||||
|
||||
def runner_on_error(self, host, msg):
|
||||
pass
|
||||
|
||||
def runner_on_skipped(self, host, item=None):
|
||||
pass
|
||||
|
||||
|
||||
@@ -63,9 +63,6 @@ class CallbackModule(object):
|
||||
def runner_on_ok(self, host, res):
|
||||
log(host, 'OK', res)
|
||||
|
||||
def runner_on_error(self, host, msg):
|
||||
log(host, 'ERROR', msg)
|
||||
|
||||
def runner_on_skipped(self, host, item=None):
|
||||
log(host, 'SKIPPED', '...')
|
||||
|
||||
|
||||
@@ -66,12 +66,6 @@ class CallbackModule(object):
|
||||
body += 'A complete dump of the error:\n\n' + str(res)
|
||||
mail(sender=sender, subject=subject, body=body)
|
||||
|
||||
def runner_on_error(self, host, msg):
|
||||
sender = '"Ansible: %s" <root>' % host
|
||||
subject = 'Error: %s' % msg.strip('\r\n').split('\n')[0]
|
||||
body = 'An error occured for host ' + host + ' with the following message:\n\n' + msg
|
||||
mail(sender=sender, subject=subject, body=body)
|
||||
|
||||
def runner_on_unreachable(self, host, res):
|
||||
sender = '"Ansible: %s" <root>' % host
|
||||
if isinstance(res, basestring):
|
||||
|
||||
@@ -49,9 +49,6 @@ class CallbackModule(object):
|
||||
def runner_on_ok(self, host, res):
|
||||
say("pew", LASER_VOICE)
|
||||
|
||||
def runner_on_error(self, host, msg):
|
||||
pass
|
||||
|
||||
def runner_on_skipped(self, host, item=None):
|
||||
say("pew", LASER_VOICE)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user