mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue