mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
A fix if you have multiple masters configured and try to fire events to the minion. Currently they fail silently. Might be the cause of #24198.
This commit is contained in:
parent
e0bb177823
commit
8abd3f0ee1
1 changed files with 5 additions and 2 deletions
|
@ -631,9 +631,12 @@ class MultiMinion(MinionBase):
|
|||
if package:
|
||||
try:
|
||||
for master in masters:
|
||||
minions[master].handle_event(package)
|
||||
if 'minion' in minions[master]:
|
||||
minions[master]['minion'].handle_event(package)
|
||||
except Exception:
|
||||
pass
|
||||
exc_type, exc_value, exc_traceback = sys.exc_info()
|
||||
lines = traceback.format_exception(exc_type, exc_value, exc_traceback)
|
||||
log.debug(lines)
|
||||
finally:
|
||||
package = None
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue