mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #44186 from garethgreenaway/44181_scheduler_multiple_whens
[2017.7] scheduler fixes
This commit is contained in:
commit
7a89cd8697
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue