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

This commit is contained in:
Chris Church 2014-07-01 17:06:44 -04:00
parent 955dadf743
commit afbc7f8a0f
3 changed files with 5 additions and 5 deletions

View file

@ -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"""

View file

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

View file

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