Skip to content

Commit

Permalink
Handle errors sending mine datas to master
Browse files Browse the repository at this point in the history
Fix for #25720
  • Loading branch information
jacksontj committed Jul 30, 2015
1 parent c5bb5bc commit fe62ce5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions salt/minion.py
Expand Up @@ -1477,8 +1477,12 @@ def _mine_send(self, package):
channel = salt.transport.Channel.factory(self.opts)
load = salt.utils.event.SaltEvent.unpack(package)[1]
load['tok'] = self.tok
ret = channel.send(load)
return ret
try:
ret = channel.send(load)
return ret
except SaltReqTimeoutError:
log.warning('Unable to send mine data to master.')
return None

@tornado.gen.coroutine
def handle_event(self, package):
Expand Down

0 comments on commit fe62ce5

Please sign in to comment.