Bug #32665
openWhen location is not same the nested hostgroup will not have the correct title.
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1789275
Description of problem:
When location is not same the nested hostgroup will not have the correct title.
How reproducible:
Example: In case of second level nesting of hostgroup like below
Hostgroup1 -> Nested-Hostgroup1 -> Twice-Nested-Hostgroup1
So, the titles should be
Hostgroup1 -> Hostgroup1/Nested-Hostgroup1 -> Hostgroup1/Nested-Hostgroup1/Twice-Nested-Hostgroup1
But it is not the result when we do not choose the Location that would be same for parent hostgroup to the next level child/children.
Steps to Reproduce:
1. Create two levels of hostgroups
2. Do not assign the location to the child/children.
3. The resulted titles will be Hostgroup1 -> Nested-Hostgroup1 -> Twice-Nested-Hostgroup1
Actual results:
Hostgroup1 -> Nested-Hostgroup1 -> Twice-Nested-Hostgroup1
Expected results:
Hostgroup1 -> Hostgroup1/Nested-Hostgroup1 -> Hostgroup1/Nested-Hostgroup1/Twice-Nested-Hostgroup1
Additional info:
NA.