Bug #39579
openAttributes inherited by a child hostgroup from a parent are returned as `nil` when querying the child via API
Description
When using the Satellite API to query a child hostgroup that has inherited attributes from its parent hostgroup, inherited values for the child are returned as nil.
How reproducible:
100%
Is this issue a regression from an earlier version:
No
Steps to Reproduce:
Sync BaseOS and AppStream kickstart repos for RHEL 10.
Create a parent hostgroup, ensuring that the BaseOS kickstart repository populates the Synced Content field on the Operating System tab.
Create a child hostgroup that inherits its attributes from the parent hostgroup.
Send a GET request to api/v2/hostgroups/<child hostgroup id>.
Actual behavior:
kickstart_repository_id and many other fields in the response, including inherited_* fields, have nil values.
Expected behavior:
Inherited values are returned when a child hostgroup is queried via API.
Updated by The Foreman Bot 4 days ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/11815 added
Updated by Ian Ballou 2 days ago
- Category changed from API to Hosts
- Target version set to Katello Next
- Triaged changed from No to Yes