Actions
Bug #37290
openHostgroup inheritance for LCE and CV does not work for grandchildren hostgroups
Description
- 1) create a hostgroup 'parent' with LCE and CV
- 2) create a child hostgroup 'child' and choose 'parent' as as parent hostgroup
- It takes the correct values from 'parent' for LCE and CV, but does not add 'Inherit parent (...)'
- Change LCE and CV to something new
- 3) create a grandchild hostgroup 'grandchild' and choose 'child' as parent hostgroup
- CV and LCE are taken from 'parent' hostgroup rather than from 'child' hostgroup
In my opinion, there are multiple thing that are going wrong here:
1) https://github.com/Katello/katello/blob/master/app/helpers/katello/hosts_and_hostgroups_helper.rb#L134 and https://github.com/Katello/katello/blob/master/app/helpers/katello/hosts_and_hostgroups_helper.rb#L163 methods do not pick the `Inherit parent (...)` option, it is added to the beginning of the list only
2) The parent host group is not resolved correctly for CV and LCE. This can either be a UI problem during saving of the new hostgroup or a problem that is hidden deeper.
Actions