Be smarter about when to abort a playbook -- if it's early, we just didn't match any hosts, so keep on, hosts might be dynamic.

This commit is contained in:
Michael DeHaan 2012-10-01 22:07:08 -04:00
commit 5683277e4a
2 changed files with 10 additions and 2 deletions

View file

@ -376,7 +376,7 @@ class PlaybookRunnerCallbacks(DefaultRunnerCallbacks):
super(PlaybookRunnerCallbacks, self).on_skipped(host, item)
def on_no_hosts(self):
print stringc("FATAL: no hosts matched or all hosts have already failed -- aborting playbook\n", 'red')
print stringc("FATAL: no hosts matched or all hosts have already failed -- aborting\n", 'red')
super(PlaybookRunnerCallbacks, self).on_no_hosts()
def on_async_poll(self, host, res, jid, clock):