Bug #12353
closedAPI GET hostgroup does not return content_view_id and lifecycle_environment_id
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1267629
Description of problem:
You can set the content_view_id and lifecycle_environment_id using PUT:
PUT /api/hostgroups/:id
...
hostgroup[content_view_id]
optional , nil allowed
Value: Must be a number.
hostgroup[lifecycle_environment_id]
optional , nil allowed
Value: Must be a number.
But the GET /api/hostgroups/:id does not return those values. For scripts this makes it impossible to verify the current values
- curl -K /opt/hoici/etc/sat6/curl-hoici.conf "-HContent-Type: application/json" "-d{\"per_page\":9999}" -XGET https://localhost/api/v2/hostgroups/24 | jq . | egrep '(content_view|lifecycle_environment)' #
In the WebUI those fields are visible as well as in object printed foreman-rake console.
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1. See curl command
2.
3.
Actual results:
fields are not returned
Expected results:
All additional Katello fields, including content_view_id,content_view_name,lifecycle_environment_id,lifecycle_environment_name are returned
Additional info:
Updated by The Foreman Bot almost 9 years ago
- Status changed from New to Ready For Testing
- Assignee set to Brad Buckingham
- Pull request https://github.com/Katello/katello/pull/5559 added
- Pull request deleted (
)
Updated by Eric Helms almost 9 years ago
- Translation missing: en.field_release set to 70
- Triaged changed from No to Yes
Updated by Justin Sherrill almost 9 years ago
- Translation missing: en.field_release changed from 70 to 86
Updated by Brad Buckingham over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|06ae7fd5228c1187113f5b9719e0b0dce4294824.