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

Bugfix: Jobs scheduled to run at a future time stay pending for Salt …
This commit is contained in:
Nicole Thomas 2017-07-18 12:13:35 -06:00 committed by GitHub
commit 55b7a5cb4a

View file

@ -333,6 +333,7 @@ import logging
import errno
import random
import yaml
import copy
# Import Salt libs
import salt.config
@ -841,7 +842,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)