Bug #11355
closedHammer JSON output not returning valid JSON for simple messages
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1253737
Description of problem:
Hammer currently does not return valid json, when requested, if the output is a simple message like "____ deleted" or "Activation key copied".
Version-Release number of selected component (if applicable):
Satellite 6.1 GA
How reproducible:
Always
Steps to Reproduce:
1. Run a command that only returns a message stating that it passed, specifying --output=json
2. View results
Actual results:
hammer --output=json activation-key copy --name=tester --new-name=copykey --organization-id=3
Activation key copied
Expected results:
hammer --output=json activation-key copy --name=tester --new-name=copykey --organization-id=3
{'Message':'Activation key copied'}
Updated by Tomáš Strachota over 9 years ago
- Category set to Hammer core
- Difficulty set to easy
Updated by Tomáš Strachota about 9 years ago
- Status changed from New to Assigned
- Assignee set to Tomáš Strachota
Updated by The Foreman Bot about 9 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/hammer-cli/pull/182 added
- Pull request deleted (
)
Updated by Anonymous about 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset ca96ee11fb3a2d017659e5a20e8c1fd9fdfe47d2.