mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fixed the jid creation to be deep enough
This commit is contained in:
parent
bd17aad1d8
commit
ca05f96697
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ import os
|
|||
import random
|
||||
import time
|
||||
import threading
|
||||
import cPickle as pickle
|
||||
# Import zeromq
|
||||
import zmq
|
||||
# Import salt modules
|
||||
|
@ -141,7 +142,7 @@ class ReqServer(threading.Thread):
|
|||
jid = str(time.time())
|
||||
jid_dir = os.path.join(jid_root, jid)
|
||||
if not os.path.isdir(jid_dir):
|
||||
os.makedirs(jid)
|
||||
os.makedirs(jid_dir)
|
||||
pickle.dump(load, open(os.path.join(jid_dir, 'load.p')))
|
||||
else:
|
||||
return self._prep_jid(load)
|
||||
|
|
Loading…
Add table
Reference in a new issue