From 150c61d226e26ca3dfd0ad2d817964f1657929f0 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 14 Feb 2021 16:41:59 -0500 Subject: [PATCH] Actually fix sorting issue --- daemon-common/ceph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon-common/ceph.py b/daemon-common/ceph.py index 96c9e4fa..b4cab0c9 100644 --- a/daemon-common/ceph.py +++ b/daemon-common/ceph.py @@ -783,4 +783,4 @@ def get_list_snapshot(zk_conn, pool, volume, limit, is_fuzzy=True): else: snapshot_list.append({'pool': pool_name, 'volume': volume_name, 'snapshot': snapshot_name}) - return True, sorted(snapshot_list, key=lambda x: int(x['snapshot'])) + return True, sorted(snapshot_list, key=lambda x: str(x['name']))