mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #9713 from SaveTheRbtz/fix-rekey
master: publish_session is in seconds, not minutes
This commit is contained in:
commit
7e4e333053
@ -226,7 +226,7 @@ class Master(SMaster):
|
||||
shutil.rmtree(f_path)
|
||||
|
||||
if self.opts.get('publish_session'):
|
||||
if now - rotate >= self.opts['publish_session'] * 60:
|
||||
if now - rotate >= self.opts['publish_session']:
|
||||
salt.crypt.dropfile(self.opts['cachedir'])
|
||||
rotate = now
|
||||
if self.opts.get('search'):
|
||||
|
Loading…
Reference in New Issue
Block a user