Project

General

Profile

Actions

Bug #12353

closed

API GET hostgroup does not return content_view_id and lifecycle_environment_id

Added by Brad Buckingham over 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

  1. 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:

Actions #1

Updated by The Foreman Bot over 8 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 ()
Actions #2

Updated by Eric Helms over 8 years ago

  • translation missing: en.field_release set to 70
  • Triaged changed from No to Yes
Actions #3

Updated by Justin Sherrill over 8 years ago

  • translation missing: en.field_release changed from 70 to 86
Actions #4

Updated by Brad Buckingham over 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF