Actually fix sorting issue

This commit is contained in:
Joshua Boniface 2021-02-14 16:41:59 -05:00
parent f1c0c9325d
commit 150c61d226
1 changed files with 1 additions and 1 deletions

View File

@ -783,4 +783,4 @@ def get_list_snapshot(zk_conn, pool, volume, limit, is_fuzzy=True):
else: else:
snapshot_list.append({'pool': pool_name, 'volume': volume_name, 'snapshot': snapshot_name}) 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']))