mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
parent
24a4f54f39
commit
ebcfaf9050
1 changed files with 15 additions and 0 deletions
|
@ -48,6 +48,21 @@ except ImportError:
|
|||
#sys.exit(salt.defaults.exitcodes.EX_GENERIC)
|
||||
|
||||
|
||||
if not hasattr(msgpack, 'exceptions'):
|
||||
class PackValueError(Exception):
|
||||
'''
|
||||
older versions of msgpack do not have PackValueError
|
||||
'''
|
||||
|
||||
class exceptions(object):
|
||||
'''
|
||||
older versions of msgpack do not have an exceptions module
|
||||
'''
|
||||
PackValueError = PackValueError()
|
||||
|
||||
msgpack.exceptions = exceptions()
|
||||
|
||||
|
||||
def package(payload):
|
||||
'''
|
||||
This method for now just wraps msgpack.dumps, but it is here so that
|
||||
|
|
Loading…
Add table
Reference in a new issue