mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #35059 from vutny/event-function-args
Add `fun_args` field to events generated by execution of Master modules
This commit is contained in:
commit
1f8a0fd1e7
1 changed files with 5 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue