Project

General

Profile

Actions

Bug #23238

closed

hammer hostgroup info --output json returns json including non unique keys

Added by Ales Dujicek about 6 years ago. Updated over 5 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Host groups
Target version:
-
Difficulty:
Triaged:
No
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

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


Related issues 2 (0 open2 closed)

Related to Hammer CLI - Tracker #14914: Tracker for output related issuesClosed

Actions
Is duplicate of Hammer CLI - Bug #23722: output of hammer hostgroup info contains redundant info about operating systems ClosedKavita GaikwadActions
Actions #1

Updated by Tomáš Strachota about 6 years ago

  • Category set to Host groups
Actions #2

Updated by Tomáš Strachota about 6 years ago

Actions #3

Updated by Ales Dujicek almost 6 years ago

  • Bugzilla link set to 1596504
Actions #4

Updated by Tomáš Strachota over 5 years ago

  • Status changed from New to Duplicate
Actions #5

Updated by Tomáš Strachota over 5 years ago

  • Is duplicate of Bug #23722: output of hammer hostgroup info contains redundant info about operating systems added
Actions

Also available in: Atom PDF