mirror of
https://github.com/gyptazy/ProxLB.git
synced 2026-04-05 20:31:57 +02:00
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:
@@ -248,7 +248,7 @@ class Tags:
|
|||||||
if pool in (proxlb_config['balancing'].get('pools') or {}):
|
if pool in (proxlb_config['balancing'].get('pools') or {}):
|
||||||
|
|
||||||
pool_nodes = proxlb_config['balancing']['pools'][pool].get('pin', None)
|
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
|
# Validate if the node to pin is present in the cluster
|
||||||
if Helper.validate_node_presence(node, nodes):
|
if Helper.validate_node_presence(node, nodes):
|
||||||
|
|||||||
Reference in New Issue
Block a user