Bug #18523
closedhammer cli : hostgroup info is not showing content-related fields
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1313056
Description of problem:
Bug 1267629 raised the issue that content-related fields are not included as part of the API. This included fields such as the following:
"content_source_id": 1,
"content_source_name": "katello-centos7-devel",
"content_view_id": 1,
"content_view_name": "Default Organization View",
"lifecycle_environment_id": 1,
"lifecycle_environment_name": "Library",
That issue has since been addressed; however, the fields should also be visible from the hammer cli.
Version-Release number of selected component (if applicable):
Satellite 6.1 and prior.
How reproducible:
Always
Steps to Reproduce:
1. create a hostgroup that contains a content source, lifecycle environment and content view
2. perform a 'hammer hostgroup info --id [id]'
3.
Actual results:
hammer> hostgroup info --id 1
Id: 1
Name: group1
Title: group1
Puppet CA Proxy Id: 1
Puppet Master Proxy Id: 1
Puppetclasses:
Parameters:
Organizations:
Default Organization
Parent Id:
Expected results:
The output should include details on the content source, lifecycle environment and content view associated with the host group.
Additional info: