Change parameter from pattern to name for playbook_on_play_start in example callback plugins.

pull/8012/head
Chris Church 11 years ago
parent 955dadf743
commit afbc7f8a0f

@ -138,7 +138,7 @@ class CallbackModule(object):
def playbook_on_not_import_for_host(self, host, missing_file):
pass
def playbook_on_play_start(self, pattern):
def playbook_on_play_start(self, name):
"""Display Playbook and play start messages"""
# This block sends information about a playbook when it starts
@ -167,7 +167,7 @@ class CallbackModule(object):
# This is where we actually say we are starting a play
self.send_msg("%s: Starting play: %s" %
(self.playbook_name, pattern))
(self.playbook_name, name))
def playbook_on_stats(self, stats):
"""Display info about playbook statistics"""

@ -108,7 +108,7 @@ class CallbackModule(object):
def playbook_on_not_import_for_host(self, host, missing_file):
log(host, 'NOTIMPORTED', missing_file)
def playbook_on_play_start(self, pattern):
def playbook_on_play_start(self, name):
pass
def playbook_on_stats(self, stats):

@ -97,8 +97,8 @@ class CallbackModule(object):
def playbook_on_not_import_for_host(self, host, missing_file):
pass
def playbook_on_play_start(self, pattern):
say("Starting play: %s" % pattern, HAPPY_VOICE)
def playbook_on_play_start(self, name):
say("Starting play: %s" % name, HAPPY_VOICE)
def playbook_on_stats(self, stats):
say("Play complete", HAPPY_VOICE)

Loading…
Cancel
Save