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"))