Created attachment 1244279 [details]
Screenshots of api output from 6.1.10 and 6.2.6
Description of problem:
If I have nested hostgroups like
test/test - nested
test/test - nested/test - nested - again
I add host to the nested group "test/test - nested/test - nested - again"
and the if I goto /api/v2/hosts/1 in hostgroup_name it only shows the last group in nested group something like:
"hostgroup_name":"test - nested - again"
But in version 6.1.10 it was showing as:
"hostgroup_name":"test/test - nested/test - nested - again"
Steps to Reproduce:
1. Create a nested group like showed above
2. Add host to the nested group
3. check the api output for api/v2/hosts/<host id>
hostgroup_name only has the value for the last group in the nested group
hostgroup_name should have value of all the nested groups in it
Adding screenshots for api output of api/v2/hosts/<host id> from both Satellite 6.1.10 and 6.2.6
I am closing this issue as this is not a bug in Satellite but rather in the inventory script used by Ansible Tower.
Feel free to reopen if you believe there is still an issue in Satellite here.