mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #42291 from vutny/fix-38839
Fix #38839: remove `state` from Reactor runner kwags
This commit is contained in:
commit
923f9741fe
1 changed files with 3 additions and 0 deletions
|
@ -278,6 +278,9 @@ class ReactWrap(object):
|
|||
# Update called function's low data with event user to
|
||||
# segregate events fired by reactor and avoid reaction loops
|
||||
kwargs['__user__'] = self.event_user
|
||||
# Replace ``state`` kwarg which comes from high data compiler.
|
||||
# It breaks some runner functions and seems unnecessary.
|
||||
kwargs['__state__'] = kwargs.pop('state')
|
||||
|
||||
l_fun(*f_call.get('args', ()), **kwargs)
|
||||
except Exception:
|
||||
|
|
Loading…
Add table
Reference in a new issue