Project

General

Profile

Actions

Bug #23387

closed

rake rss:create_notifications - no implicit conversion of String into Integer

Added by Ohad Levy about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Notifications
Target version:
Difficulty:
trivial
Triaged:
Fixed in Releases:
Found in Releases:

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)

Actions

Also available in: Atom PDF