Actions
Bug #21081
closed"Gem Load Error is: uninitialized constant Foreman::Dynflow" when running zeus with foreman-tasks
Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman plugin
Target version:
Description
When using zues with foreman-tasks loaded, I was getting errors with environment
initialization
Gem Load Error is: uninitialized constant Foreman::Dynflow Backtrace for gem load error is: /home/inecas/Projects/ws/foreman-rex/foreman-tasks/lib/foreman_tasks/dynflow/configuration.rb:8:in `<module:ForemanTasks>' /home/inecas/Projects/ws/foreman-rex/foreman-tasks/lib/foreman_tasks/dynflow/configuration.rb:6:in `<top (required)>' /home/inecas/Projects/ws/foreman-rex/foreman-tasks/lib/foreman_tasks.rb:5:in `<top (required)>' /home/inecas/Projects/ws/foreman-rex/foreman-tasks/lib/foreman-tasks.rb:1:in `<top (required)>' /home/inecas/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.15.4/lib/bundler/runtime.rb:82:in `require' /home/inecas/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.15.4/lib/bundler/runtime.rb:82:in `block (2 levels) in require' /home/inecas/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.15.4/lib/bundler/runtime.rb:77:in `each'
The issue was we were trying to access a class that was not loaded yet. Not sure why we were not seeing
this error anywhere else but the fix should be being more explicit when loading something from the Foreman.
Actions