Project

General

Profile

Actions

Bug #10916

closed

unknown attribute: config_template_ids in operatingsystems PUT and POST

Added by Martin Bacovsky almost 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

| Started PUT "/api/operatingsystems/1" for 2001:4800:7818:101:be76:4eff:fe04:7fb2 at 2015-06-24 08:11:58 +0000
2015-06-24 08:11:58 [app] [I] Processing by Api::V2::OperatingsystemsController#update as JSON
2015-06-24 08:11:58 [app] [I] Parameters: {"operatingsystem"=>{"config_template_ids"=>["58"]}, "apiv"=>"v2", "id"=>"1"}
....
2015-06-24 08:11:59 [app] [W] Action failed | ActiveRecord::UnknownAttributeError: unknown attribute: config_template_ids | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/attribute_assignment.rb:88:in `block in assign_attributes' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/attribute_assignment.rb:78:in `each' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/attribute_assignment.rb:78:in `assign_attributes' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/persistence.rb:215:in `block in update_attributes' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:293:in `with_transaction_returning_status' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/persistence.rb:214:in `update_attributes' | /usr/share/foreman/app/controllers/api/v2/operatingsystems_controller.rb:61:in `update'

Reproducible e.g. with hammer command

hammer os add-config-template --id 1 --config-template tpl59


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #7096: Partition Tables should just be a kind of Provisioning TemplatesClosedMarek Hulán08/14/2014Actions
Actions #1

Updated by Dominic Cleal almost 9 years ago

  • Related to Feature #7096: Partition Tables should just be a kind of Provisioning Templates added
Actions #2

Updated by The Foreman Bot almost 9 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2484 added
  • Pull request deleted ()
Actions #3

Updated by Martin Bacovsky almost 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF