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

This commit is contained in:
Chris Church 2014-05-15 19:15:56 -04:00
parent 8ed6350e65
commit 30fae95efe
2 changed files with 4 additions and 4 deletions

View file

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

View file

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