Bug #23387
rake rss:create_notifications - no implicit conversion of String into Integer
Description
When using the rake task with the FOREMAN_RSS_LATEST_POSTS option, the following error is observed.
rake aborted! TypeError: no implicit conversion of String into Integer /home/ohad/git/foreman/app/services/ui_notifications/rss_notifications_checker.rb:44:in `[]' /home/ohad/git/foreman/app/services/ui_notifications/rss_notifications_checker.rb:44:in `deliver!' /home/ohad/git/foreman/lib/tasks/rss.rake:40:in `block (2 levels) in <top (required)>' /home/ohad/.rvm/gems/ruby-2.4.2@foreman/gems/rake-12.3.1/exe/rake:27:in `<top (required)>' /home/ohad/.rvm/gems/ruby-2.4.2@foreman/bin/ruby_executable_hooks:15:in `eval' /home/ohad/.rvm/gems/ruby-2.4.2@foreman/bin/ruby_executable_hooks:15:in `<main>' Tasks: TOP => rss:create_notifications (See full trace by running task with --trace)
Associated revisions
History
#1
Updated by The Foreman Bot over 4 years ago
- Assignee set to Ohad Levy
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/5510 added
#2
Updated by Daniel Lobato Garcia over 4 years ago
- Legacy Backlogs Release (now unused) set to 330
#3
Updated by Ohad Levy over 4 years ago
- % Done changed from 0 to 100
- Status changed from Ready For Testing to Closed
Applied in changeset 1cb6f147eb54e84ad39b837643d581f4ed96313c.
fixes #23387 - FOREMAN_RSS_LATEST_POSTS option now works
the rake task rss:create_notifications failed to
parse FOREMAN_RSS_LATEST_POSTS value correctly.