Skip to content
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

resource: fix resource from model lookup now uses hierarchy correctly #46

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

robvdl
Copy link
Member

@robvdl robvdl commented Mar 14, 2024

It keeps traversing the object hierarchy until it finds one that isn't None.

If it gets exhausted (that shouldn't happen) it just returns Resource, but the last loop iteration should already do that as it hits "top".

Also add some docstrings to resource.py

Fixes #38

It keeps traversing the object hierarchy until it finds one that isn't None.

If it gets exhausted (that shouldn't happen) it just returns Resource, but the last loop iteration should already do that as it hits "top".

Also add some docstrings to resource.py

Fixes #38
@robvdl robvdl merged commit a00ecf0 into master Mar 14, 2024
1 check passed
@robvdl robvdl deleted the resource-hierarchy branch March 14, 2024 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Having a way to browse to a different DC node
1 participant