Project

General

Profile

Bug #26703

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

Added by Martin Bacovsky 6 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Category:
Hammer core
Target version:
-
Team Backlog:
Fixed in Releases:
Found in Releases:

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" => {}
    }
}

Associated revisions

Revision 08ab8114 (diff)
Added by Martin Bacovsky 6 months ago

Fixes #26703 - Make sure list opts return a list

History

#1 Updated by The Foreman Bot 6 months ago

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

#2 Updated by Martin Bacovsky 6 months ago

  • Status changed from Ready For Testing to Closed

#3 Updated by The Foreman Bot 6 months ago

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

Also available in: Atom PDF