mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
fix(portal): Uniq nodes before counting (#9352)
While we shouldn't have any duplicates in this list, it would be a good idea to unique the node names before counting just to be sure.
This commit is contained in:
@@ -187,7 +187,9 @@ defmodule Domain.Cluster.GoogleComputeLabelsStrategy do
|
||||
end
|
||||
|
||||
defp connected_node_count(nodes, target_app) do
|
||||
Enum.count(nodes, fn node_name ->
|
||||
nodes
|
||||
|> Enum.uniq()
|
||||
|> Enum.count(fn node_name ->
|
||||
app =
|
||||
node_name
|
||||
|> Atom.to_string()
|
||||
|
||||
Reference in New Issue
Block a user