Project

General

Profile

Bug #10547

Can't set array parameters to hosts

Added by Tomáš Strachota over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman commands (obsolete)
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

hammer host update --id 26 --parameters 'servers=["time.apple.com","pool.ntp.org"]'
Could not update the host:
  undefined method `strip!' for ["a", "b"]:Array

The error happens on api side because hammer sends array object in value of the parameter instead of expected string.

Associated revisions

Revision 1a31a197 (diff)
Added by Tomas Strachota over 6 years ago

Fixes #10547 - Can't set array parameters on hosts

Revision 84db940a
Added by mbacovsky over 6 years ago

Merge pull request #180 from tstrachota/host_params

Fixes #10547 - Can't set array parameters on hosts

History

#1 Updated by The Foreman Bot over 6 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli-foreman/pull/180 added
  • Pull request deleted ()

#2 Updated by Anonymous over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Tomáš Strachota about 6 years ago

  • Bugzilla link set to 1272980

Also available in: Atom PDF