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