mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix issue with parsing the returns and thinking that the load.p was a
host
This commit is contained in:
parent
e4354242c5
commit
e03bb7b29a
2 changed files with 3 additions and 1 deletions
|
@ -77,6 +77,8 @@ class LocalClient(object):
|
|||
# Wait for the hosts to check in
|
||||
while True:
|
||||
for fn_ in os.listdir(jid_dir):
|
||||
if fn_.startswith('.'):
|
||||
continue
|
||||
if not ret.has_key(fn_):
|
||||
ret[fn_] = pickle.loads(open(os.path.join(jid_dir,
|
||||
fn_, 'return.p'), 'r'))
|
||||
|
|
|
@ -143,7 +143,7 @@ class ReqServer(threading.Thread):
|
|||
jid_dir = os.path.join(jid_root, jid)
|
||||
if not os.path.isdir(jid_dir):
|
||||
os.makedirs(jid_dir)
|
||||
pickle.dump(load, open(os.path.join(jid_dir, 'load.p'), 'w+'))
|
||||
pickle.dump(load, open(os.path.join(jid_dir, '.load.p'), 'w+'))
|
||||
else:
|
||||
return self._prep_jid(load)
|
||||
return jid
|
||||
|
|
Loading…
Add table
Reference in a new issue