Backward compatibility execution failures with 1.9

This commit is contained in:
Vincent Roy 2016-04-12 19:04:44 -03:00 committed by James Cammarata
parent 48aa9153f2
commit ba89b2a095
2 changed files with 3 additions and 4 deletions

View file

@ -151,9 +151,8 @@ class PlaybookExecutor:
elif len(batch) == failed_hosts_count:
break
# clear the failed hosts dictionaires in the TQM for the next batch
# save the unreachable hosts from this batch
self._unreachable_hosts.update(self._tqm._unreachable_hosts)
self._tqm.clear_failed_hosts()
# if the last result wasn't zero or 3 (some hosts were unreachable),
# break out of the serial batch loop