Regression tests for playbooks, logging the events they call via callbacks.

This commit is contained in:
Michael DeHaan
2012-03-18 19:25:56 -04:00
parent b15c8e9cb1
commit 5371a9e497
6 changed files with 259 additions and 13 deletions

View File

@@ -49,7 +49,7 @@ class PlaybookCallbacks(object):
def on_failed(self, host, results):
print "failed: [%s] => %s\n" % (host, utils.smjson(results))
def on_ok(self, host):
def on_ok(self, host, host_result):
print "ok: [%s]\n" % (host)
def on_play_start(self, pattern):