Bug #1926
closedForeman fails when click in "import new puppet classes and environments"
Description
can't convert ActiveRecord::Errors into Array
If you feel this is an error with Foreman itself, please open a new issue with Foreman ticketing system, You would probably need to attach the Full trace and relevant log entries.
TypeError
can't convert ActiveRecord::Errors into Array
/usr/share/foreman/app/models/environment.rb:126:in `+'
/usr/share/foreman/app/models/environment.rb:126:in `obsolete_and_new'
/usr/share/foreman/app/models/environment.rb:123:in `each'
/usr/share/foreman/app/models/environment.rb:123:in `obsolete_and_new'
/usr/share/foreman/app/models/environment.rb:114:in `each'
/usr/share/foreman/app/models/environment.rb:114:in `obsolete_and_new'
/usr/share/foreman/lib/foreman/controller/environments.rb:19:in `obsolete_and_new'
My class works fine whitout ENC
Updated by Ohad Levy about 12 years ago
- Category set to Importers
- Assignee set to Amos Benari
- Priority changed from Urgent to Normal
- Target version set to 1.1
Updated by Greg Sutcliffe about 12 years ago
- Target version changed from 1.1 to Bug scrub
Updated by Amos Benari about 12 years ago
- Status changed from New to Closed
This bug is in the old code of of import.
Trace show error in line 126, we now have 55 lines in the Environment class.