mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Sleep before restart
This commit is contained in:
parent
4105e2abfb
commit
8b2c6817cf
1 changed files with 1 additions and 0 deletions
|
@ -95,6 +95,7 @@ def minion_process(queue):
|
|||
log.info('Sleeping random_reauth_delay of {0} seconds'.format(random_delay))
|
||||
# preform delay after minion resources have been cleaned
|
||||
if minion.options.daemon:
|
||||
time.sleep(random_delay)
|
||||
salt_minion()
|
||||
else:
|
||||
queue.put(random_delay)
|
||||
|
|
Loading…
Add table
Reference in a new issue