Actions
Bug #23238
closedhammer hostgroup info --output json returns json including non unique keys
Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Host groups
Target version:
-
Description
there is "Operating System" twice and they contain different data
so one of them is lost if you parse it
# hammer --output json -v -u admin -p changeme hostgroup info --id="36"
{
"Id": 36,
"Name": "6lLfrO",
"Title": "6lLfrO",
"Operating System": {
"content_source_id": 1,
"content_source_name": "foreman.redhat.com",
"content_view_id": 371,
},
"Puppet CA Proxy": {
"content_source_id": 1,
"content_source_name": "foreman.redhat.com",
"content_view_id": 371,
},
"Puppet Master Proxy": {
},
"Network": {
},
"Operating system": {
"Architecture": {
"content_source_id": 1,
"content_source_name": "foreman.redhat.com",
"content_view_id": 371
}
},
"Puppetclasses": [
],
"Parameters": [
null
],
"Organizations": [
],
"OpenSCAP Proxy": null,
"Content View": {
"ID": 371,
"Name": "SQyJYkoRsU"
},
"Lifecycle Environment": {
"ID": 265,
"Name": "rjPGjE"
},
"Content Source": {
"ID": 1,
"Name": "sforeman.redhat.com"
},
"Kickstart Repository": {
"ID": 566,
"Name": "NSZjjWCFkVaaVuF"
}
}
foreman-1.18.0-0.develop.201804061848git210e295.el7.noarch
tfm-rubygem-hammer_cli-0.13.pre.develop-1.201803232224gite493035.el7.noarch
Updated by Tomáš Strachota over 7 years ago
- Related to Tracker #14914: Tracker for output related issues added
Updated by Tomáš Strachota about 7 years ago
- Status changed from New to Duplicate
Updated by Tomáš Strachota about 7 years ago
- Is duplicate of Bug #23722: output of hammer hostgroup info contains redundant info about operating systems added
Actions