MCPcopy
hub / github.com/saltstack/salt / pack_exception

Function pack_exception

salt/utils/error.py:32–37  ·  view source on GitHub ↗
(exc)

Source from the content-addressed store, hash-verified

30
31
32def pack_exception(exc):
33 if hasattr(exc, "pack"):
34 packed_exception = exc.pack()
35 else:
36 packed_exception = {"message": exc.__unicode__(), "args": exc.args}
37 return packed_exception
38
39
40def fire_exception(exc, opts, job=None, node="minion"):

Callers 1

fire_exceptionFunction · 0.85

Calls 1

packMethod · 0.45

Tested by

no test coverage detected