mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #38399 from skizunov/develop3
Fix exception when `event.fire_master` used without connection
This commit is contained in:
commit
fb8b5d2d46
@ -2001,8 +2001,9 @@ class Minion(MinionBase):
|
||||
elif tag.startswith('_minion_mine'):
|
||||
self._mine_send(tag, data)
|
||||
elif tag.startswith('fire_master'):
|
||||
log.debug('Forwarding master event tag={tag}'.format(tag=data['tag']))
|
||||
self._fire_master(data['data'], data['tag'], data['events'], data['pretag'])
|
||||
if self.connected:
|
||||
log.debug('Forwarding master event tag={tag}'.format(tag=data['tag']))
|
||||
self._fire_master(data['data'], data['tag'], data['events'], data['pretag'])
|
||||
elif tag.startswith('__schedule_return'):
|
||||
# reporting current connection with master
|
||||
if data['schedule'].startswith(master_event(type='alive', master='')):
|
||||
|
Loading…
Reference in New Issue
Block a user