Description of problem:
Hammer has CSV as a structured format output, but it's not a particularly well-defined format. It would be preferable to have JSON and/or YAML structured outputs - probably simply returning the JSON from Foreman's API.
Steps to Reproduce:
1. hammer --output json domain list
separate lines, base formatter
Created redmine issue http://projects.theforeman.org/issues/6754 from this bug
Moving to POST since upstream bug http://projects.theforeman.org/issues/6754 has been closed
Applied in changeset commit:07da5edc481b0d3ad8d668118b0ea7b3a59ecc19.
Verified on: Satellite-6.1.0-RHEL-7-20150303.0
Steps to verify:
[root@sat6 ~]# hammer -u admin -p password --output json organization list
"Name": "Default Organization",
[root@sat6 ~]# hammer -u admin -p password --output yaml organization list
- Id: 1
Name: Default Organization
[root@sat6 ~]# hammer -u admin -p password --output json location list
"Name": "Default Location"
[root@sat6 ~]# hammer -u admin -p password --output yaml location list
- Id: 2
Name: Default Location
This bug is slated to be released with Satellite 6.1.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.