fix(portal): fix problem_nodes removal (#9561)

The shape of this from libcluster is `[:"NODE_NAME": connected_bool?]`
so we need to extract the first element of each item before using this
var.

This is just for logging and doesn't affect how we actually connect to
nodes.
This commit is contained in:
Jamil
2025-06-17 09:53:42 -07:00
committed by GitHub
parent e5914af50f
commit 38471738aa

View File

@@ -58,6 +58,8 @@ defmodule Domain.Cluster.GoogleComputeLabelsStrategy do
Map.put(state, :connected_nodes, nodes)
{:error, problem_nodes} ->
problem_nodes = Enum.map(problem_nodes, &elem(&1, 0))
state = Map.put(state, :connected_nodes, nodes -- problem_nodes)
# Expected during deploy as the list of nodes received does not factor in the health check