Actions
Bug #12799
closedCreating new compute resource fails with "Can't mass-assign protected attributes: uuid"
Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources - libvirt
Target version:
Description
Create a new libvirt resource -> save -> get stack trace:
ActiveModel::MassAssignmentSecurity::Error in ComputeResourcesController#create Can't mass-assign protected attributes: uuid Rails.root: /home/tbrisker/foreman Application Trace | Framework Trace | Full Trace app/models/compute_resource.rb:73:in `new' app/models/compute_resource.rb:73:in `block in new_provider' app/models/compute_resource.rb:72:in `each' app/models/compute_resource.rb:72:in `new_provider' app/controllers/compute_resources_controller.rb:26:in `create' app/controllers/concerns/application_shared.rb:13:in `set_timezone' app/models/concerns/foreman/thread_session.rb:32:in `clear_thread' lib/middleware/catch_json_parse_errors.rb:9:in `call' Request Parameters: {"utf8"=>"✓", "authenticity_token"=>"vCzf6Yl1G6hDMqg4tOUU83IFZpf4WItyPaqRqq8V31I=", "compute_resource"=>{"name"=>"local", "description"=>"", "url"=>"qemu:///system", "display_type"=>"VNC", "set_console_password"=>"[FILTERED]", "uuid"=>"5ED58601-545B-11CB-83D8-BE9FEEB2C1AB", "location_ids"=>[""], "organization_ids"=>[""]}, "commit"=>"Submit", "locale"=>nil}
Actions