From d1de7839d792b1a1378f3e9b95d8ebea48c2a607 Mon Sep 17 00:00:00 2001 From: Chris Church Date: Sun, 9 Jun 2013 12:19:07 -0400 Subject: [PATCH] Renamed on_no_hosts_matched/on_no_hosts_remaining to correct names in noop callback, added methods to callback plugin examples. --- lib/ansible/callback_plugins/noop.py | 4 ++-- plugins/callbacks/log_plays.py | 6 ++++++ plugins/callbacks/osx_say.py | 6 ++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/ansible/callback_plugins/noop.py b/lib/ansible/callback_plugins/noop.py index 826bad0f7e..54a2b254fc 100644 --- a/lib/ansible/callback_plugins/noop.py +++ b/lib/ansible/callback_plugins/noop.py @@ -63,10 +63,10 @@ class CallbackModule(object): def playbook_on_notify(self, host, handler): pass - def on_no_hosts_matched(self): + def playbook_on_no_hosts_matched(self): pass - def on_no_hosts_remaining(self): + def playbook_on_no_hosts_remaining(self): pass def playbook_on_task_start(self, name, is_conditional): diff --git a/plugins/callbacks/log_plays.py b/plugins/callbacks/log_plays.py index 41c5d1b86a..8f037d6b1a 100644 --- a/plugins/callbacks/log_plays.py +++ b/plugins/callbacks/log_plays.py @@ -90,6 +90,12 @@ class CallbackModule(object): def playbook_on_notify(self, host, handler): pass + def playbook_on_no_hosts_matched(self): + pass + + def playbook_on_no_hosts_remaining(self): + pass + def playbook_on_task_start(self, name, is_conditional): pass diff --git a/plugins/callbacks/osx_say.py b/plugins/callbacks/osx_say.py index 89c82ca530..9f6763c100 100644 --- a/plugins/callbacks/osx_say.py +++ b/plugins/callbacks/osx_say.py @@ -67,6 +67,12 @@ class CallbackModule(object): def playbook_on_notify(self, host, handler): say("pew", LASER_VOICE) + def playbook_on_no_hosts_matched(self): + pass + + def playbook_on_no_hosts_remaining(self): + pass + def playbook_on_task_start(self, name, is_conditional): if not is_conditional: say("Starting task: %s" % name, REGULAR_VOICE)