Add fun_args field to events generated by execution of Master modules

This commit is contained in:
Denys Havrysh 2016-07-29 18:03:09 +03:00
parent bee303db51
commit 19d080445b

View file

@ -256,10 +256,14 @@ class SyncClientMixin(object):
jid = low.get('__jid__', salt.utils.jid.gen_jid())
tag = low.get('__tag__', tagify(jid, prefix=self.tag_prefix))
# This avoids including kwargs dict as args list in low data.
# We only need to update event data.
fun_args = low.get('args', [])
data = {'fun': '{0}.{1}'.format(self.client, fun),
'fun_args': fun_args + ([low['kwargs']] if low.get('kwargs', False) else []),
'jid': jid,
'user': low.get('__user__', 'UNKNOWN'),
}
}
event = salt.utils.event.get_event(
'master',