Actions
Bug #11991
closed[foreman-tasks/action] [E] undefined method `job_templates' for #<Organization:0x007f1a85025a48> (NoMethodError)
Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
On my installed foreman+katello nightly box, when I tried to create a new org I got following error:
| Started POST "/organizations" for 10.65.193.85 at 2015-09-29 04:58:23 -0400 2015-09-29 04:58:23 [app] [I] Processing by OrganizationsController#create as HTML 2015-09-29 04:58:23 [app] [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"4EqIQej2Av7qPzZ+f44dk0V9tbFXI+avRwFZR3hStyQ=", "organization"=>{"name"=>"test", "label"=>"", "description"=>""}, "commit"=>"Submit"} 2015-09-29 04:58:23 [foreman-tasks/action] [E] undefined method `job_templates' for #<Organization:0x007f1a85025a48> (NoMethodError) | /opt/rh/ruby193/root/usr/share/gems/gems/activemodel-3.2.8/lib/active_model/attribute_methods.rb:407:in `method_missing' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/attribute_methods.rb:149:in `method_missing' | /usr/share/foreman/app/models/taxonomy.rb:187:in `block in assign_default_templates' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/delegation.rb:6:in `each' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/delegation.rb:6:in `each' | /usr/share/foreman/app/models/taxonomy.rb:186:in `assign_default_templates' | /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:469:in `_run__3131709793935100361__create__1453868857134192696__callbacks'
Reproducible with following build:
------------------------------------
foreman-release-1.10.0-0.develop.201509171905gitd7b8c7a.el7.noarch
foreman-libvirt-1.10.0-0.develop.201509171905gitd7b8c7a.el7.noarch
foreman-1.10.0-0.develop.201509171905gitd7b8c7a.el7.noarch
rubygem-smart_proxy_remote_execution_ssh-0.0.5-1.el7.noarch
tfm-rubygem-foreman_remote_execution-0.0.6-1.fm1_10.el7.noarch
Actions