Actions
Bug #26703
closedHammer does not convert single value into an array for a list type option
Difficulty:
Triaged:
No
Pull request:
Team Backlog:
Description
# hammer host update --puppet-class-ids 2 --name pipeline-foreman-1-22-centos7.wisse.example.com Host updated.
Yet after that the Puppet class is not assigned. The debug output suggests it’s not parsing the parameter:
[ INFO 2019-04-26T15:16:49 API] PUT /api/hosts/1 [DEBUG 2019-04-26T15:16:49 API] Params: { "host" => { "name" => "pipeline-foreman-1-22-centos7.wisse.example.com", "puppetclass_ids" => 2, "compute_attributes" => {} } }
Actions