mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Gate msgpack in salt/modules/saltutil.py
This commit is contained in:
parent
02303b22ce
commit
d4da8e66a4
1 changed files with 5 additions and 1 deletions
|
@ -522,7 +522,11 @@ def find_cached_job(jid):
|
|||
buf = fp_.read()
|
||||
fp_.close()
|
||||
if buf:
|
||||
data = serial.loads(buf)
|
||||
try:
|
||||
data = serial.loads(buf)
|
||||
except NameError:
|
||||
# msgpack error in salt-ssh
|
||||
return
|
||||
else:
|
||||
return
|
||||
if not isinstance(data, dict):
|
||||
|
|
Loading…
Add table
Reference in a new issue