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 almost 5 years ago. Updated almost 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 #1

Updated by The Foreman Bot almost 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli/pull/302 added
Actions #2

Updated by Martin Bacovsky almost 5 years ago

  • Status changed from Ready For Testing to Closed
Actions #3

Updated by The Foreman Bot almost 5 years ago

  • Pull request https://github.com/theforeman/hammer-cli/pull/303 added
Actions

Also available in: Atom PDF