mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Fix '--clean/--no-clean' logic needed to sync minions.
This commit is contained in:
parent
6c8abca054
commit
42799e0953
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user