Bug #1491
closedFail to import new classes
Description
In debian nightly I get that error when I try to import new classes :
Processing EnvironmentsController#obsolete_and_new (for 192.168.200.29 at 2012-02-10 20:14:57) [POST]
Parameters: {"commit"=>"Update", "changed"=>{"new"=>{"production"=>"[\"munin::client::darwin\",\"munin::client::debian\",\"munin::client::redhat\",\"munin::snmp_collector\",\"nagios::contactgroups\",\"nagios::contacts\",\"nagios::host\",\"nagios::hostgroups\",\"nagios::service\"]", "development"=>"[\"munin::client::darwin\",\"munin::client::debian\",\"munin::client::redhat\",\"munin::snmp_collector\",\"nagios::contactgroups\",\"nagios::contacts\",\"nagios::host\",\"nagios::hostgroups\",\"nagios::service\",\"plop\"]", "preprod"=>"[\"\",\"munin::client::darwin\",\"munin::client::debian\",\"munin::client::redhat\",\"munin::snmp_collector\",\"nagios::contactgroups\",\"nagios::contacts\",\"nagios::host\",\"nagios::hostgroups\",\"nagios::service\"]", "test"=>"[\"munin::client::darwin\",\"munin::client::debian\",\"munin::client::redhat\",\"munin::snmp_collector\",\"nagios::contactgroups\",\"nagios::contacts\",\"nagios::host\",\"nagios::hostgroups\",\"nagios::service\"]"}}, "authenticity_token"=>"3Slfefr64QgtO+kPj3ek0Lz6Kn/eofSyQL5fynUj/Yg="}
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'
Rendering template within layouts/application
Rendering common/500 (500)
I backported #1436.
Updated by Ohad Levy over 12 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset b9cb1001147b2751f5f3de1054a1275abc702842.