Project

General

Profile

Actions

Bug #2345

closed

Unable to update hostgroup parameter by REST API

Added by Axel Tischer about 11 years ago. Updated almost 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When I try to update hostgroup parameters via REST API I get

Started PUT "/foreman/hostgroups/102/" for 10.129.59.20 at Wed Mar 20 09:43:51 +0100 2013
Processing by HostgroupsController#update as JSON
Parameters: {"id"=>"102", "hostgroup"=>{"ancestry"=>nil, "operatingsystem_id"=>nil, "id"=>102, "label"=>"apitest", "subnet_id"=>nil, "domain_id"=>nil, "parameters"=>{"apit_appl_v
ersion"=>"0.0.1", "apit_java_version"=>"1.7.1"}, "name"=>"apitest", "environment_id"=>4, "puppetclass_ids"=>nil}}
Operation FAILED: unknown attribute: parameters
Completed 500 Internal Server Error in 4ms


Files

change_foreman_group_param.rb change_foreman_group_param.rb 1.26 KB Stefan Held, 08/12/2013 10:45 AM
Actions

Also available in: Atom PDF