File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ let get_file_or_fail fd desc filename =
197197
198198let diagnostic_timing_stats printer rpc session_id params =
199199 let counts = get_bool_param params " counts" in
200+ let sort = List. sort (fun (x , _ ) (y , _ ) -> String. compare x y) in
200201 let table_of_host host =
201202 [
202203 (" host-uuid" , Client.Host. get_uuid ~rpc ~session_id ~self: host)
@@ -207,7 +208,8 @@ let diagnostic_timing_stats printer rpc session_id params =
207208 with e -> [(" Error" , Api_errors. to_string e)]
208209 in
209210 let all = List. map table_of_host (Client.Host. get_all ~rpc ~session_id ) in
210- printer (Cli_printer. PTable all)
211+ let sorted = List. map sort all in
212+ printer (Cli_printer. PTable sorted)
211213
212214let get_hosts_by_name_or_id rpc session_id name =
213215 let hosts = Client.Host. get_all_records_where ~rpc ~session_id ~expr: " true" in
You can’t perform that action at this time.
0 commit comments