Project

General

Profile

Actions

Bug #9721

closed

Arrays in key-value parameters can't contain spaces

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

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Hammer core
Target version:
-
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Arrays in key-value parameters currently can't contain spaces which is a bit unintuitive. Parsing of the following:

hammer host create --parameters packages='[vim, tmux]'

results in:

{"packages"=>["vim", " tmux"]}

Note the additional leading space in tmux.

Also

hammer host create --parameters formula='a=b+1'

gets parsed wrongly as:
{"formula=a"=>"b+1"}

but it's a minor issue.

Actions #1

Updated by The Foreman Bot almost 9 years ago

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

Updated by Tomáš Strachota almost 9 years ago

  • Bugzilla link set to 1201364
Actions #3

Updated by Anonymous almost 9 years ago

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

Also available in: Atom PDF