Project

General

Profile

Actions

Bug #11170

closed

foreman-rake: setting complex parameters (arrays, hashes) broken?

Added by Robert Rauch almost 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Rake tasks
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Trying to set complex Foreman parameters (i.e. arrays or hashes) using foreman-rake results in various errors, i.e.

[root@foreman ~]# foreman-rake -- config -k trusted_puppetmaster_hosts -v '[ "foo.bar.com", "foo.baz.org" ]'
rake aborted!
A JSON text must at least contain two octets!

Tasks: TOP => config
(See full trace by running task with --trace)

Another variant:

[root@foreman ~]# foreman-rake -- config -k trusted_puppetmaster_hosts -v '["foo.bar.com", "foo.baz.org"]'       
rake aborted!
387: unexpected token at 'foo.bar.com,'

Tasks: TOP => config
(See full trace by running task with --trace)

Related issues 1 (0 open1 closed)

Related to Packaging - Bug #11275: hammer ... list --search with spaces in arg fails on SCL OSClosedDominic Cleal08/03/2015Actions
Actions

Also available in: Atom PDF