mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
fix conversion error in master.py
This commit is contained in:
parent
fb077cef5c
commit
13d8e4220a
@ -38,7 +38,7 @@ class Master(object):
|
||||
keep = int(time.time()) - diff
|
||||
jid_root = os.path.join(self.opts['cachedir'], 'jobs')
|
||||
for jid in os.listdir(jid_root):
|
||||
if int(jid) < keep:
|
||||
if int(jid.split('.')[0]) < keep:
|
||||
shutil.rmtree(os.path.join(jid_root, jid))
|
||||
|
||||
def start(self):
|
||||
|
Loading…
Reference in New Issue
Block a user