Feature #28868
hammer does not inherit parent location information
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1733241
Description of problem:
subnets and the templates that are configured in the parent location should also be visible in "hammer location info --name child_location". Unlike it shows correctly in GUI.
Version-Release number of selected component (if applicable):
6.5
How reproducible:
100%
Steps to Reproduce:
1. Create a parent and child location on GUI.
2. Create a Subnet under parent and another subnet under child location.
3. Now get the information of location through hammer.
- hammer location info --show-hidden-parameters yes --name child_location ---> It will show subnet which is associated only with child_location.
- hammer location info --show-hidden-parameters yes --name parent_location ---> It will show subnet which is associated only with parent_location.
Actual results:
- hammer location info --show-hidden-parameters yes --name child_location ---> It will show subnet which is associated only with child_location.
- hammer location info --show-hidden-parameters yes --name parent_location ---> It will show subnet which is associated only with parent_location.
Expected results:
Manage Locations >> Parent_Location >> Subnets ---> It will show both subnets under parent & child location.
Manage Locations >> Child_Location >> Subnets ---> It will show both subnets under parent & child location. As inherited from parent.
The above behavior should also be reflected by hammer/API
Additional info:
The same behavior has been observed for provisioning template as well.
Related issues
Associated revisions
History
#1
Updated by The Foreman Bot 11 months ago
- Assignee set to Shira Maximov
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/7434 added
#2
Updated by The Foreman Bot 10 months ago
- Pull request https://github.com/theforeman/foreman/pull/7502 added
#3
Updated by The Foreman Bot 10 months ago
- Fixed in Releases 2.1.0 added
#4
Updated by Shira Maximov 10 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset 342b168b6bb385024d58d27864aa581d859fed17.
#5
Updated by Tomer Brisker 10 months ago
- Related to Bug #28984: Add location inherited parameters added
#6
Updated by The Foreman Bot 10 months ago
- Pull request https://github.com/theforeman/foreman/pull/7530 added
Fixes #28868 - Add location inherited parameters