From a0bf5fd279bea8f1b81a73afb39ac30b4797645b Mon Sep 17 00:00:00 2001 From: Grigoriy Troitskiy Date: Wed, 13 Nov 2024 14:10:59 +0300 Subject: [PATCH] HH-237863 fix datacenters in service discovery --- frontik/service_discovery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontik/service_discovery.py b/frontik/service_discovery.py index 008a63732..076662b4b 100644 --- a/frontik/service_discovery.py +++ b/frontik/service_discovery.py @@ -157,7 +157,7 @@ def cross_dc_or_forced(entry): upstream, dc = entry return allow_cross_dc or dc == http_options.datacenter or upstream in forced_cross_dc_upstreams - for upstream, dc in filter(cross_dc_or_forced, itertools.product(options.upstreams, http_options.datacenter)): + for upstream, dc in filter(cross_dc_or_forced, itertools.product(options.upstreams, http_options.datacenters)): health_cache = HealthCache( service=upstream, health_client=self.consul.health,