mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
use finally instead of catching baseexception
This commit is contained in:
parent
de98be6093
commit
b878f01662
@ -156,9 +156,8 @@ def minion_process():
|
|||||||
log.info('waiting random_reauth_delay %ss', delay)
|
log.info('waiting random_reauth_delay %ss', delay)
|
||||||
time.sleep(delay)
|
time.sleep(delay)
|
||||||
sys.exit(salt.defaults.exitcodes.SALT_KEEPALIVE)
|
sys.exit(salt.defaults.exitcodes.SALT_KEEPALIVE)
|
||||||
except BaseException:
|
finally:
|
||||||
lock.acquire(blocking=True)
|
lock.acquire(blocking=True)
|
||||||
raise
|
|
||||||
|
|
||||||
|
|
||||||
def salt_minion():
|
def salt_minion():
|
||||||
|
Loading…
Reference in New Issue
Block a user