Fix '--clean/--no-clean' logic needed to sync minions.

This commit is contained in:
Pedro Algarvio 2012-12-04 13:36:33 +00:00
parent 6c8abca054
commit 42799e0953

View File

@ -306,14 +306,19 @@ class TestDaemon(object):
wait_minion_connections.join()
wait_minion_connections.terminate()
if wait_minion_connections.exitcode > 0:
print(
'\n {RED_BOLD}*{ENDC} ERROR: Failed to sync minions'.format(
**self.colors
)
)
return False
del(wait_minion_connections)
sync_needed = False
if not self.opts.clean:
sync_needed = self.opts.clean
if self.opts.clean is False:
def sumfile(fpath):
# Since we will be doin this for small files, it should be ok
# Since we will be do'in this for small files, it should be ok
fobj = fopen(fpath)
m = md5()
while True: