Commit 30fae95e by Chris Church

Change variable from pattern to name to correctly indicate what is being passed to the callback.

parent 8ed6350e
...@@ -89,7 +89,7 @@ class CallbackModule(object): ...@@ -89,7 +89,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):
pass pass
def playbook_on_stats(self, stats): def playbook_on_stats(self, stats):
......
...@@ -695,9 +695,9 @@ class PlaybookCallbacks(object): ...@@ -695,9 +695,9 @@ class PlaybookCallbacks(object):
display(msg, color='cyan') display(msg, color='cyan')
call_callback_module('playbook_on_not_import_for_host', host, missing_file) call_callback_module('playbook_on_not_import_for_host', host, missing_file)
def on_play_start(self, pattern): def on_play_start(self, name):
display(banner("PLAY [%s]" % pattern)) display(banner("PLAY [%s]" % name))
call_callback_module('playbook_on_play_start', pattern) call_callback_module('playbook_on_play_start', name)
def on_stats(self, stats): def on_stats(self, stats):
call_callback_module('playbook_on_stats', stats) call_callback_module('playbook_on_stats', stats)
......
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