From e80b797e3a420c1483a22af40b7ab61efc63e73c Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 17 Oct 2024 10:09:49 -0400 Subject: [PATCH] Add missing sorter for detail parser --- client-cli/pvc/cli/parsers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client-cli/pvc/cli/parsers.py b/client-cli/pvc/cli/parsers.py index 4e75eda2..2d6dbc76 100644 --- a/client-cli/pvc/cli/parsers.py +++ b/client-cli/pvc/cli/parsers.py @@ -122,4 +122,5 @@ def cli_connection_detail_parser(connections_config): } ) - return connections_data + # Return, ensuring local is always first + return sorted(connections_data, key=lambda x: (x.get("name") != "local"))