Commit afbc7f8a by Chris Church

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

parent 955dadf7
...@@ -138,7 +138,7 @@ class CallbackModule(object): ...@@ -138,7 +138,7 @@ class CallbackModule(object):
def playbook_on_not_import_for_host(self, host, missing_file): def playbook_on_not_import_for_host(self, host, missing_file):
pass pass
def playbook_on_play_start(self, pattern): def playbook_on_play_start(self, name):
"""Display Playbook and play start messages""" """Display Playbook and play start messages"""
# This block sends information about a playbook when it starts # This block sends information about a playbook when it starts
...@@ -167,7 +167,7 @@ class CallbackModule(object): ...@@ -167,7 +167,7 @@ class CallbackModule(object):
# This is where we actually say we are starting a play # This is where we actually say we are starting a play
self.send_msg("%s: Starting play: %s" % self.send_msg("%s: Starting play: %s" %
(self.playbook_name, pattern)) (self.playbook_name, name))
def playbook_on_stats(self, stats): def playbook_on_stats(self, stats):
"""Display info about playbook statistics""" """Display info about playbook statistics"""
......
...@@ -108,7 +108,7 @@ class CallbackModule(object): ...@@ -108,7 +108,7 @@ class CallbackModule(object):
def playbook_on_not_import_for_host(self, host, missing_file): def playbook_on_not_import_for_host(self, host, missing_file):
log(host, 'NOTIMPORTED', missing_file) log(host, 'NOTIMPORTED', missing_file)
def playbook_on_play_start(self, pattern): def playbook_on_play_start(self, name):
pass pass
def playbook_on_stats(self, stats): def playbook_on_stats(self, stats):
......
...@@ -97,8 +97,8 @@ class CallbackModule(object): ...@@ -97,8 +97,8 @@ class CallbackModule(object):
def playbook_on_not_import_for_host(self, host, missing_file): def playbook_on_not_import_for_host(self, host, missing_file):
pass pass
def playbook_on_play_start(self, pattern): def playbook_on_play_start(self, name):
say("Starting play: %s" % pattern, HAPPY_VOICE) say("Starting play: %s" % name, HAPPY_VOICE)
def playbook_on_stats(self, stats): def playbook_on_stats(self, stats):
say("Play complete", HAPPY_VOICE) say("Play complete", HAPPY_VOICE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment