mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
Fix non raw msg pack msg decoding
This commit is contained in:
parent
f193f0f2ec
commit
ce782ff27a
1 changed files with 4 additions and 1 deletions
|
@ -148,7 +148,10 @@ class Serial(object):
|
|||
# that under Python 2 we can still work with older versions
|
||||
# of msgpack.
|
||||
if msgpack.version >= (0, 5, 2):
|
||||
loads_kwargs['raw'] = False
|
||||
if encoding is None:
|
||||
loads_kwargs['raw'] = True
|
||||
else:
|
||||
loads_kwargs['raw'] = False
|
||||
else:
|
||||
loads_kwargs['encoding'] = encoding
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue