Actions
Bug #12863
closedGetting error when creating a task with recurring logic with end time set
Description
Getting
| NameError (undefined local variable or method `recurring_options' for #<Class:0x00564bf9e57f18>): | /home/ares/Projekty/Zdrojaky/foreman-tasks/app/models/foreman_tasks/recurring_logic.rb:115:in `block in new_from_triggering' | /home/ares/Projekty/Zdrojaky/foreman-tasks/app/models/foreman_tasks/recurring_logic.rb:114:in `tap' | /home/ares/Projekty/Zdrojaky/foreman-tasks/app/models/foreman_tasks/recurring_logic.rb:114:in `new_from_triggering' | /home/ares/Projekty/Zdrojaky/foreman-tasks/app/models/foreman_tasks/triggering.rb:60:in `trigger' | /home/ares/Projekty/Zdrojaky/foreman_remote_execution/app/controllers/job_invocations_controller.rb:34:in `create' | app/controllers/concerns/application_shared.rb:13:in `set_timezone' | app/models/concerns/foreman/thread_session.rb:32:in `clear_thread' | lib/middleware/catch_json_parse_errors.rb:9:in `call'
Trace points to this line
https://github.com/theforeman/foreman-tasks/commit/b86be5c86c5c3f57418b7bb99491d69396fbcb48#diff-40322a10c66d72947f97da715484c8deR111
Tested with both 0.7.7 and 0.7.8
Actions