diff --git a/daemon-common/ceph.py b/daemon-common/ceph.py index 152c1e7e..96c9e4fa 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['id'])) + return True, sorted(snapshot_list, key=lambda x: int(x['snapshot']))