Fix sorting bug with snapshot list
This commit is contained in:
parent
f22f291c8b
commit
26b0a8b5c1
|
@ -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']))
|
||||
|
|
Loading…
Reference in New Issue