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

pull/8012/head
Chris Church 11 years ago
parent 8ed6350e65
commit 30fae95efe

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

Loading…
Cancel
Save