mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
repair the issue where pickle are being read before they are written
This commit is contained in:
parent
7b60f6f30e
commit
47d33eb940
1 changed files with 5 additions and 1 deletions
|
@ -120,7 +120,11 @@ class LocalClient(object):
|
|||
retp = os.path.join(jid_dir, fn_, 'return.p')
|
||||
if not os.path.isfile(retp):
|
||||
continue
|
||||
ret[fn_] = pickle.load(open(retp, 'r'))
|
||||
while not ret.has_key[fn_]:
|
||||
try:
|
||||
ret[fn_] = pickle.load(open(retp, 'r'))
|
||||
except:
|
||||
pass
|
||||
if ret and start == 999999999999:
|
||||
start = int(time.time())
|
||||
if len(ret) >= len(minions):
|
||||
|
|
Loading…
Add table
Reference in a new issue