Project

General

Profile

Actions

Bug #26703

closed

Hammer does not convert single value into an array for a list type option

Added by Martin Bacovsky about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Hammer core
Target version:
-
Fixed in Releases:
Found in Releases:
In Kanboard:

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

Also available in: Atom PDF