Project

General

Profile

Actions

Bug #10547

closed

Can't set array parameters to hosts

Added by Tomáš Strachota almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman commands (obsolete)
Target version:
-
Difficulty:
Triaged:
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.

Actions #1

Updated by The Foreman Bot almost 9 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 ()
Actions #2

Updated by Anonymous almost 9 years ago

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

Updated by Tomáš Strachota over 8 years ago

  • Bugzilla link set to 1272980
Actions

Also available in: Atom PDF