Merge pull request #43443 from garethgreenaway/43386_2017_7_schedule_kwargs_pub

[2017.7] Fixes to scheduler __pub values in kwargs
This commit is contained in:
Nicole Thomas 2017-09-12 14:14:45 -04:00 committed by GitHub
commit 2fc237a806

View file

@ -842,7 +842,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)