Fix skipped callback

pull/1009/head
Michael DeHaan 12 years ago
parent eed031cd82
commit f41d3b9bd2

@ -236,8 +236,8 @@ class CliRunnerCallbacks(DefaultRunnerCallbacks):
) )
super(CliRunnerCallbacks, self).on_unreachable(host, res) super(CliRunnerCallbacks, self).on_unreachable(host, res)
def on_skipped(self, host): def on_skipped(self, host, item=None):
super(CliRunnerCallbacks, self).on_skipped(host, res) super(CliRunnerCallbacks, self).on_skipped(host, item)
def on_error(self, host, err): def on_error(self, host, err):
print >>sys.stderr, "err: [%s] => %s\n" % (host, err) print >>sys.stderr, "err: [%s] => %s\n" % (host, err)
@ -354,7 +354,7 @@ class PlaybookRunnerCallbacks(DefaultRunnerCallbacks):
else: else:
msg = "skipping: [%s]" % host msg = "skipping: [%s]" % host
print stringc(msg, 'yellow') print stringc(msg, 'yellow')
super(PlaybookRunnerCallbacks, self).on_skipped(host, item=None) super(PlaybookRunnerCallbacks, self).on_skipped(host, item)
def on_no_hosts(self): def on_no_hosts(self):
print stringc("no hosts matched or remaining\n", 'red') print stringc("no hosts matched or remaining\n", 'red')

Loading…
Cancel
Save