Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
zoe
main
Commits
c399418f
Commit
c399418f
authored
Nov 07, 2016
by
Daniele Venzano
Browse files
Sort executions by ID in command line client
parent
f4aee420
Changes
1
Hide whitespace changes
Inline
Side-by-side
zoe_cmd/entrypoint.py
View file @
c399418f
...
...
@@ -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'
]))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment