Project

General

Profile

Actions

Bug #9721

closed

Arrays in key-value parameters can't contain spaces

Added by Tomáš Strachota almost 10 years ago. Updated almost 10 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

Also available in: Atom PDF