Merge pull request #42339 from isbm/isbm-jobs-scheduled-in-a-future-bsc1036125

Bugfix: Jobs scheduled to run at a future time stay pending for Salt minions (bsc#1036125)
This commit is contained in:
Nicole Thomas 2017-07-27 13:05:50 -06:00 committed by GitHub
commit 4b16109122

View file

@ -333,6 +333,7 @@ import logging
import errno
import random
import yaml
import copy
# Import Salt libs
import salt.config
@ -844,7 +845,7 @@ 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)] = val
kwargs['__pub_{0}'.format(key)] = copy.deepcopy(val)
ret['return'] = self.functions[func](*args, **kwargs)