Unsafe argument

This commit is contained in:
Colton Myers 2014-10-30 18:15:42 -06:00
parent f625c21d77
commit f38491ba8c

View File

@ -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')