Actions
Bug #6343
closedParameters not wrapped when resolved from names
Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman commands (obsolete)
Target version:
Difficulty:
Triaged:
Pull request:
Team Backlog:
Description
When running something like:
hammer --debug host create --hostgroup libvirt --name hammer2 --compute-resource localhost
The parameters that are passed in and resolved by name aren't nested within the "host" hash that's POSTed to /api/hosts:
[ INFO 2014-06-23 16:25:03 API] POST /api/hosts
[DEBUG 2014-06-23 16:25:03 API] Params: {
"host" => {
"name" => "hammer2",
"build" => true,
"enabled" => true,
"managed" => true,
"compute_profile_id" => "2",
"compute_attributes" => {
"volumes_attributes" => {}
},
"host_parameters_attributes" => {},
"interfaces_attributes" => {}
},
"compute_resource_id" => 1,
"hostgroup_id" => 6,
"compute_profile_id" => "2"
}
This prevents Foreman from using them, so in this case, errors are given by Foreman that the attributes provided via the host group are missing.
Actions