[GITLAB] - UPGRADE TO v12 on Wednesday the 18th of December at 11.30AM

Commit c399418f authored by Daniele Venzano's avatar Daniele Venzano

Sort executions by ID in command line client

parent f4aee420
......@@ -84,7 +84,7 @@ def exec_list_cmd(args_):
"""List executions"""
exec_api = ZoeExecutionsAPI(utils.zoe_url(), utils.zoe_user(), utils.zoe_pass())
data = exec_api.list()
for e in data.values():
for e in sorted(data.values(), key=lambda x: x['id']):
print('Execution {} (User: {}, ID: {}): {}'.format(e['name'], e['user_id'], e['id'], e['status']))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment