Stop async /bin/ansible if completed on all hosts.

pull/143/head
Jeroen Hoekx 13 years ago
parent a975852f66
commit d366885367

@ -147,6 +147,8 @@ class Cli(object):
clock = clock - options.poll_interval clock = clock - options.poll_interval
time.sleep(options.poll_interval) time.sleep(options.poll_interval)
poll_hosts = self.hosts_to_poll(poll_results) poll_hosts = self.hosts_to_poll(poll_results)
if len(poll_hosts)==0:
break
######################################################## ########################################################

Loading…
Cancel
Save