Project

General

Profile

Actions

Bug #8851

closed

Loading seed file of plugins with dash in name fails

Added by Marek Hulán over 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugin integration
Target version:
Difficulty:
Triaged:
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 1 (0 open1 closed)

Related to Foreman - Bug #9141: Problems with asset precompilation with dash in plugin nameResolved01/28/2015Actions
Actions #1

Updated by The Foreman Bot over 9 years ago

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

Updated by Marek Hulán over 9 years ago

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

Updated by Dominic Cleal over 9 years ago

  • Category set to Plugin integration
  • translation missing: en.field_release set to 30
Actions #4

Updated by Anonymous about 9 years ago

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

Also available in: Atom PDF