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:
Mike Place 2017-09-12 09:16:19 -06:00 committed by GitHub
commit a6c458607a

View file

@ -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)