Bug #17010

Updated by Tomáš Strachota over 1 year ago

Cloned from

Description of problem:
Hammer returns inconsistent capitalization in its json output. For example, a user trying to parse the id's in an output may have to handle 'ID', 'Id', and 'id'.

Version-Release number of selected component (if applicable):
Satellite 6.1 GA

How reproducible:

Steps to Reproduce:
1. run one of the two commands detailed in Additional Info, or your own choice.
2. run at least one more command
3. Check consistency for returned keys

Actual results:
keys are inconsistently capitalized

Expected results:
keys are inconsistently capitalized. I prefer lowercase for ease

Additional info:
hammer --output=json organization info --id="31"
"Id": 31,
"Name": "KVybjk",
"Users": [

"Smart proxies": [
"name": "",
"id": 1,
"url": ""
"Templates": [
"id": 44,
"name": "Boot disk iPXE - generic host",
"template_kind_id": 1,
"template_kind_name": "Bootdisk"

hammer -v -u --output=json activation-key info --id="57"
"Name": "rI6jNBJVaR",
"ID": 57,
"Description": null,
"Content Host Limit": "Unlimited",
"Auto Attach": true,
"Lifecycle Environment": null,
"Content View": null,
"Host Collections": {