mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Unsafe argument
This commit is contained in:
parent
f625c21d77
commit
f38491ba8c
@ -41,10 +41,12 @@ def pack_exception(exc):
|
|||||||
return packed_exception
|
return packed_exception
|
||||||
|
|
||||||
|
|
||||||
def fire_exception(exc, opts, job={}, node='minion'):
|
def fire_exception(exc, opts, job=None, node='minion'):
|
||||||
'''
|
'''
|
||||||
Fire raw exception across the event bus
|
Fire raw exception across the event bus
|
||||||
'''
|
'''
|
||||||
|
if job is None:
|
||||||
|
job = {}
|
||||||
event = salt.utils.event.SaltEvent(node, opts=opts)
|
event = salt.utils.event.SaltEvent(node, opts=opts)
|
||||||
event.fire_event({'exception': pack_exception(exc),
|
event.fire_event({'exception': pack_exception(exc),
|
||||||
'job': job}, '_salt_error')
|
'job': job}, '_salt_error')
|
||||||
|
Loading…
Reference in New Issue
Block a user