Skip to content

Commit

Permalink
HH-237863 fix datacenters in service discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
gtroitskiy committed Nov 13, 2024
1 parent 5dacff3 commit a0bf5fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontik/service_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a0bf5fd

Please sign in to comment.