Actions
Bug #5583
closedHave a more friendly developer error if orgs are not enabled
Description
The current error (below is not very helpful). We could display something more helpful.
/home/dadavis/Projects/katello/lib/katello/plugin.rb:141:in `block in <top (required)>': undefined method `actions' for nil:NilClass (NoMethodError)
from /home/dadavis/Projects/foreman/app/services/foreman/plugin.rb:61:in `instance_eval'
from /home/dadavis/Projects/foreman/app/services/foreman/plugin.rb:61:in `register'
from /home/dadavis/Projects/katello/lib/katello/plugin.rb:1:in `<top (required)>'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/polyglot-0.3.4/lib/polyglot.rb:65:in `require'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/polyglot-0.3.4/lib/polyglot.rb:65:in `require'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `block in require'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require'
from /home/dadavis/Projects/katello/lib/katello/engine.rb:112:in `block in <class:Engine>'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/railties-3.2.17/lib/rails/initializable.rb:30:in `instance_exec'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/railties-3.2.17/lib/rails/initializable.rb:30:in `run'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/railties-3.2.17/lib/rails/initializable.rb:55:in `block in run_initializers'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/railties-3.2.17/lib/rails/initializable.rb:54:in `each'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/railties-3.2.17/lib/rails/initializable.rb:54:in `run_initializers'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/railties-3.2.17/lib/rails/application.rb:136:in `initialize!'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/railties-3.2.17/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /home/dadavis/Projects/foreman/config/environment.rb:5:in `<top (required)>'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/polyglot-0.3.4/lib/polyglot.rb:65:in `require'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/polyglot-0.3.4/lib/polyglot.rb:65:in `require'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `block in require'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require'
from /home/dadavis/Projects/foreman/config.ru:3:in `block in <main>'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from /home/dadavis/Projects/foreman/config.ru:in `new'
from /home/dadavis/Projects/foreman/config.ru:in `<main>'
Updated by David Davis over 11 years ago
- Status changed from New to Assigned
- Assignee set to David Davis
Updated by David Davis over 11 years ago
- Status changed from Assigned to New
- Priority changed from Normal to Low
Updated by Eric Helms over 11 years ago
- Category set to 83
- Triaged changed from No to Yes
Updated by Eric Helms almost 10 years ago
- Translation missing: en.field_release set to 114
Updated by Eric Helms almost 10 years ago
- Related to Tracker #7605: As a Foreman user, I would like to be able to add Katello later to an existing Foreman installation added
Updated by Anonymous over 6 years ago
- Status changed from New to Resolved
In the meanwhile, orgs and locs became mandatory in Foreman itself.
Actions