mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Adding a small check to ensure we do not continue to populate kwargs with __pub_ items from the kwargs item.
This commit is contained in:
parent
57cccd75d0
commit
6114df8dc3
@ -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…
Reference in New Issue
Block a user