Project

General

Profile

Actions

Bug #11355

closed

Hammer JSON output not returning valid JSON for simple messages

Added by Bryan Kearney over 9 years ago. Updated about 9 years ago.

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

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'}

Actions #1

Updated by Tomáš Strachota over 9 years ago

  • Category set to Hammer core
  • Difficulty set to easy
Actions #2

Updated by Tomáš Strachota about 9 years ago

  • Status changed from New to Assigned
  • Assignee set to Tomáš Strachota
Actions #3

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 ()
Actions #4

Updated by Anonymous about 9 years ago

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

Also available in: Atom PDF