mirror of
https://github.com/gyptazy/ProxLB.git
synced 2026-04-27 09:15:54 +03:00
[PR #376] [MERGED] Fix enforce_affinity boolean inversion #172
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ProxLB-gyptazy#172
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/gyptazy/ProxLB/pull/376
Author: @Thalagyrt
Created: 11/26/2025
Status: ✅ Merged
Merged: 11/27/2025
Merged by: @gyptazy
Base:
main← Head:patch-affinity-rebalance📝 Commits (1)
a70330dFix enforce_affinity boolean inversion📊 Changes
2 files changed (+3 additions, -1 deletions)
View changed files
➕
.changelogs/1.1.11/335_fix_affinity_matrix_prevalidation.yml(+2 -0)📝
proxlb/models/calculations.py(+1 -1)📄 Description
During runs in which affinity checks determine balancing actions, there was a small error in a boolean calculation that caused ProxLB to always rebalance, as it exited the verification loop with a failure the first time it saw a VM that actually passed affinity checks.
Fixes: #335
Apologies, unsure what to do on changelogs, as the directories there seem to only mention existing releases - is there something I'm missing to note this patch down? I also ran flake8 locally per contributing.md, and it complained about nearly every file, and pytest in the repo root said no tests run, so I figure CI may be configured to do something different there. If anything fails on this PR I'll fix it after CI runs it. :)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.