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:
Gareth J. Greenaway 2015-06-11 12:54:55 -07:00
parent e0bb177823
commit 8abd3f0ee1

View file

@ -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