From bbba84ce2d3646609a7f3ff84934be1417f970c0 Mon Sep 17 00:00:00 2001 From: Bo Maryniuk Date: Mon, 17 Jul 2017 15:26:54 +0200 Subject: [PATCH] Bugfix: Jobs scheduled to run at a future time stay pending for Salt minions (bsc#1036125) --- salt/utils/schedule.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/salt/utils/schedule.py b/salt/utils/schedule.py index a69e5ca418..88118e5b58 100644 --- a/salt/utils/schedule.py +++ b/salt/utils/schedule.py @@ -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)