mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #43442 from garethgreenaway/43386_2016_11_schedule_kwargs_pub
[2016.11] Fixes to scheduler __pub values in kwargs
This commit is contained in:
commit
a6c458607a
1 changed files with 2 additions and 1 deletions
|
@ -845,7 +845,8 @@ class Schedule(object):
|
|||
if argspec.keywords:
|
||||
# this function accepts **kwargs, pack in the publish data
|
||||
for key, val in six.iteritems(ret):
|
||||
kwargs['__pub_{0}'.format(key)] = copy.deepcopy(val)
|
||||
if key is not 'kwargs':
|
||||
kwargs['__pub_{0}'.format(key)] = copy.deepcopy(val)
|
||||
|
||||
ret['return'] = self.functions[func](*args, **kwargs)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue