mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Bugfix: Jobs scheduled to run at a future time stay pending for Salt minions (bsc#1036125)
This commit is contained in:
parent
acadd54013
commit
bbba84ce2d
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user