Fix skipped callback

This commit is contained in:
Michael DeHaan 2012-09-04 21:56:32 -04:00
parent eed031cd82
commit f41d3b9bd2

View file

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