Merge pull request #399 from gyptazy/fix/395-fix-non-existent-pool-stacktrace

fix: Fix crashing on non-existent pools
This commit is contained in:
gyptazy
2025-12-13 20:06:16 +01:00
committed by GitHub

View File

@@ -248,7 +248,7 @@ class Tags:
if pool in (proxlb_config['balancing'].get('pools') or {}):
pool_nodes = proxlb_config['balancing']['pools'][pool].get('pin', None)
for node in pool_nodes:
for node in pool_nodes if pool_nodes is not None else []:
# Validate if the node to pin is present in the cluster
if Helper.validate_node_presence(node, nodes):