From f41d3b9bd2da3b016a0779b3d91a8f98b478db26 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Tue, 4 Sep 2012 21:56:32 -0400 Subject: [PATCH] Fix skipped callback --- lib/ansible/callbacks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/callbacks.py b/lib/ansible/callbacks.py index e4890f42a3d..5b5058e1feb 100644 --- a/lib/ansible/callbacks.py +++ b/lib/ansible/callbacks.py @@ -236,8 +236,8 @@ class CliRunnerCallbacks(DefaultRunnerCallbacks): ) super(CliRunnerCallbacks, self).on_unreachable(host, res) - def on_skipped(self, host): - super(CliRunnerCallbacks, self).on_skipped(host, res) + def on_skipped(self, host, item=None): + super(CliRunnerCallbacks, self).on_skipped(host, item) def on_error(self, host, err): print >>sys.stderr, "err: [%s] => %s\n" % (host, err) @@ -354,7 +354,7 @@ class PlaybookRunnerCallbacks(DefaultRunnerCallbacks): else: msg = "skipping: [%s]" % host print stringc(msg, 'yellow') - super(PlaybookRunnerCallbacks, self).on_skipped(host, item=None) + super(PlaybookRunnerCallbacks, self).on_skipped(host, item) def on_no_hosts(self): print stringc("no hosts matched or remaining\n", 'red')