From b33c0ab0e2d7184a6ca7665293c4be79a014ef42 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 14 Feb 2021 16:48:42 -0500 Subject: [PATCH] Final final fix to snapshot ordering --- 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 b4cab0c9..e8b99c14 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: str(x['name'])) + return True, sorted(snapshot_list, key=lambda x: str(x['snapshot']))