mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #44186 from garethgreenaway/44181_scheduler_multiple_whens
[2017.7] scheduler fixes
This commit is contained in:
commit
7a89cd8697
@ -1139,7 +1139,8 @@ class Schedule(object):
|
||||
# Sort the list of "whens" from earlier to later schedules
|
||||
_when.sort()
|
||||
|
||||
for i in _when:
|
||||
# Copy the list so we can loop through it
|
||||
for i in copy.deepcopy(_when):
|
||||
if i < now and len(_when) > 1:
|
||||
# Remove all missed schedules except the latest one.
|
||||
# We need it to detect if it was triggered previously.
|
||||
|
Loading…
Reference in New Issue
Block a user