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):
pass
def playbook_on_play_start(self, pattern):
def playbook_on_play_start(self, name):
pass
def playbook_on_stats(self, stats):

@ -695,9 +695,9 @@ class PlaybookCallbacks(object):
display(msg, color='cyan')
call_callback_module('playbook_on_not_import_for_host', host, missing_file)
def on_play_start(self, pattern):
display(banner("PLAY [%s]" % pattern))
call_callback_module('playbook_on_play_start', pattern)
def on_play_start(self, name):
display(banner("PLAY [%s]" % name))
call_callback_module('playbook_on_play_start', name)
def on_stats(self, stats):
call_callback_module('playbook_on_stats', stats)

Loading…
Cancel
Save