mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Add saftey to prevent master workers from dying with old minions
This commit is contained in:
parent
702bc3f6b0
commit
667f4163f9
@ -258,6 +258,11 @@ class MWorker(multiprocessing.Process):
|
|||||||
The _handle_payload method is the key method used to figure out what
|
The _handle_payload method is the key method used to figure out what
|
||||||
needs to be done with communication to the server
|
needs to be done with communication to the server
|
||||||
'''
|
'''
|
||||||
|
try:
|
||||||
|
key = payload['enc']
|
||||||
|
load = payload['load']
|
||||||
|
except KeyError:
|
||||||
|
return ''
|
||||||
return {'aes': self._handle_aes,
|
return {'aes': self._handle_aes,
|
||||||
'pub': self._handle_pub,
|
'pub': self._handle_pub,
|
||||||
'clear': self._handle_clear}[payload['enc']](payload['load'])
|
'clear': self._handle_clear}[payload['enc']](payload['load'])
|
||||||
|
Loading…
Reference in New Issue
Block a user