Skip to content

Commit

Permalink
Fixes #37938 - Reject start-at dates in the past when a job is scheduled
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Fernández Rodríguez <pafernan@redhat.com>
  • Loading branch information
pafernanr committed Nov 26, 2024
1 parent 4767f89 commit 230d686
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/models/foreman_tasks/triggering.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,4 @@ def start_at_is_not_past
errors.add(:start_at, _('is in the past')) if !start_at.nil? && Time.zone.parse(start_at_raw) < Time.zone.now
end
end
end
future
end

Check failure on line 130 in app/models/foreman_tasks/triggering.rb

View workflow job for this annotation

GitHub Actions / Rubocop / Rubocop

Layout/TrailingEmptyLines: Final newline missing.

0 comments on commit 230d686

Please # to comment.