mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix continuous minion restart if a dependency wasn't installed
This commit is contained in:
parent
244c3bd495
commit
12af60b7be
1 changed files with 3 additions and 1 deletions
|
@ -81,6 +81,8 @@ def minion_process(queue):
|
|||
try:
|
||||
minion = salt.cli.daemons.Minion()
|
||||
minion.start()
|
||||
except ImportError as exc:
|
||||
log.error(exc)
|
||||
except (Exception, SaltClientError, SaltReqTimeoutError, SaltSystemExit) as exc:
|
||||
log.error(
|
||||
'Minion failed to start: {0}'.format(get_error_message(exc)),
|
||||
|
@ -88,7 +90,7 @@ def minion_process(queue):
|
|||
)
|
||||
restart = True
|
||||
except SystemExit as exc:
|
||||
restart = False
|
||||
log.error(exc)
|
||||
|
||||
if restart is True:
|
||||
log.warning('Fatal functionality error caught by minion handler:\n', exc_info=True)
|
||||
|
|
Loading…
Add table
Reference in a new issue