From 48711000b0aa8393a7621fc2b0e3afab6a7bca70 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 29 May 2020 13:41:52 -0400 Subject: [PATCH] Ensure stats sorting is by right key --- client-cli/cli_lib/ceph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client-cli/cli_lib/ceph.py b/client-cli/cli_lib/ceph.py index a4ce4a33..4bb8494c 100644 --- a/client-cli/cli_lib/ceph.py +++ b/client-cli/cli_lib/ceph.py @@ -752,7 +752,7 @@ Wr: {pool_write_ops: <{pool_write_ops_length}} \ ) ) - for pool_information in sorted(pool_list, key = lambda x: int(x['id'])): + for pool_information in sorted(pool_list, key = lambda x: int(x['stats']['id'])): # Format the output header pool_list_output.append('{bold}\ {pool_id: <{pool_id_length}} \