Project

General

Profile

Bug #23387

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

Added by Ohad Levy 6 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Notifications
Target version:
Difficulty:
trivial
Triaged:
Bugzilla link:
Team Backlog:
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)

Associated revisions

Revision 1cb6f147 (diff)
Added by Ohad Levy 6 months ago

fixes #23387 - FOREMAN_RSS_LATEST_POSTS option now works

the rake task rss:create_notifications failed to
parse FOREMAN_RSS_LATEST_POSTS value correctly.

History

#1 Updated by The Foreman Bot 6 months 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 6 months ago

  • Legacy Backlogs Release (now unused) set to 330

#3 Updated by Ohad Levy 6 months ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF