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

Function fire_exception

salt/utils/error.py:40–47  ·  view source on GitHub ↗

Fire raw exception across the event bus

(exc, opts, job=None, node="minion")

Source from the content-addressed store, hash-verified

38
39
40def fire_exception(exc, opts, job=None, node="minion"):
41 """
42 Fire raw exception across the event bus
43 """
44 if job is None:
45 job = {}
46 event = salt.utils.event.SaltEvent(node, opts=opts, listen=False)
47 event.fire_event(pack_exception(exc), "_salt_error")

Callers

nothing calls this directly

Calls 2

fire_eventMethod · 0.95
pack_exceptionFunction · 0.85

Tested by

no test coverage detected