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

Handle mixed leases when searching for reservations with counts #35

Merged
merged 1 commit into from
Jan 19, 2023

Conversation

super-cooper
Copy link
Contributor

In chi.lease.get_node_reservation, if a count is provided, the lookup will fail because it searches all reservations for the values of min_count and max_count. Floating IP reservations have only an amount, so the comparison fails.

This change simply uses an invalid count for any reservations which have un-bounded counts.

In `chi.lease.get_node_reservation`, if a `count` is provided, the lookup will fail because it searches all reservations for the values of `min_count` and `max_count`. Floating IP reservations have only an `amount`, so the comparison fails.

This change simply uses an invalid count for any reservations which have un-bounded counts.
@super-cooper super-cooper added the bug Something isn't working label Jan 19, 2023
@super-cooper super-cooper self-assigned this Jan 19, 2023
@super-cooper super-cooper merged commit 253dab4 into master Jan 19, 2023
@super-cooper super-cooper deleted the fix-node-reservation-search branch January 19, 2023 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants