Project

General

Profile

Bug #8851

Loading seed file of plugins with dash in name fails

Added by Marek Hulán over 4 years ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugins-Engines
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Running db:seed rake task does not load seed files from engines (plugins) that contains dash in their name (e.g. foreman-tasks). Here's the trace from log (no other is displayed to user).

wrong constant name Foreman-tasks
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:230:in `const_defined?'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:230:in `block in constantize'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:229:in `each'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/inflector/methods.rb:229:in `constantize'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/core_ext/string/inflections.rb:54:in `constantize'
/home/ares/Projekty/Zdrojaky/foreman/db/seeds.rb:55:in `block in <top (required)>'
/home/ares/Projekty/Zdrojaky/foreman/db/seeds.rb:53:in `each'
/home/ares/Projekty/Zdrojaky/foreman/db/seeds.rb:53:in `<top (required)>'

The fix is trivial, PR will follow.


Related issues

Related to Foreman - Bug #9141: Problems with asset precompilation with dash in plugin nameResolved2015-01-28

Associated revisions

Revision 01652bbe (diff)
Added by Marek Hulán over 4 years ago

Fixes #8851 - support seed files of plugin with dash in name

Revision 9496e262 (diff)
Added by Marek Hulán over 4 years ago

Fixes #8851 - support seed files of plugin with dash in name

(cherry picked from commit 01652bbe92a9824a82fcfd6a4f98d61478e52b52)

History

#1 Updated by The Foreman Bot over 4 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2051 added
  • Pull request deleted ()

#2 Updated by Marek Hulán over 4 years ago

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

#3 Updated by Dominic Cleal over 4 years ago

  • Category set to Plugins-Engines
  • Legacy Backlogs Release (now unused) set to 30

#4 Updated by Michael Moll over 4 years ago

  • Related to Bug #9141: Problems with asset precompilation with dash in plugin name added

Also available in: Atom PDF