-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inheritance Issue #621
Comments
thanks for reporting, I opened #623 which should address this bug |
Thanks! Re #623 - Looks great. I think it may still need a change of g.items() to g.data.items() in _resolve_data? And maybe a .values() test for this scenario? |
Thank you. |
Something that returns an ordered list of all the groups might help in
|
Another function that needs checking on, Possible fix for
|
Thanks, I will try to find time to look into your comments. Just a tip, these comments would be easier to track on the PR alongside the code. |
There appears to be an inheritance issue as found by Netigo @ https://nornir.discourse.group/t/inheritance-problem/645
If you recreate the inventory files at https://github.com/nornir-automation/nornir/blob/develop/docs/tutorial/inventory.ipynb
Then try
The data is supposed to come from the group
global
, but instead comes from defaults.yaml, ie acme.local. It should be global.local as mentioned in the documentation.I've attempted a possible patch but not sure how correct it is within the Nornir framework.
In
nornir/core/inventory.py
Modify the group loop in
_resolve_data
Modify the group loop in
__getitem__
The text was updated successfully, but these errors were encountered: