Bugfix: Jobs scheduled to run at a future time stay pending for Salt minions (bsc#1036125)

This commit is contained in:
Bo Maryniuk 2017-07-17 15:26:54 +02:00
parent acadd54013
commit bbba84ce2d

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)