From f9d25d04c093e5b6cd33b0de6dd80dda3d4ef444 Mon Sep 17 00:00:00 2001 From: nikolamilosa Date: Tue, 29 Oct 2024 11:10:28 +0100 Subject: [PATCH] fixing duplicate entries in node_providers --- rs/cli/src/commands/registry.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rs/cli/src/commands/registry.rs b/rs/cli/src/commands/registry.rs index c6eb2bdcd..7d58ebeff 100644 --- a/rs/cli/src/commands/registry.rs +++ b/rs/cli/src/commands/registry.rs @@ -421,6 +421,7 @@ async fn get_node_providers(local_registry: &Arc) -> anyhow::R .await? .values() .map(|operator| operator.provider.clone()) + .sorted_by_key(|provider| provider.principal) .dedup_by(|x, y| x.principal == y.principal) .collect_vec();