Skip to content
Snippets Groups Projects
Commit 598b5255 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

gnt-job info: Sort input fields


This helps to find a value for complex opcodes.

Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent b52d85c1
No related merge requests found
......@@ -290,9 +290,10 @@ def ShowJobs(opts, args):
else:
format_msg(3, "No processing end time")
format_msg(3, "Input fields:")
for key, val in opcode.iteritems():
for key in utils.NiceSort(opcode.keys()):
if key == "OP_ID":
continue
val = opcode[key]
if isinstance(val, (tuple, list)):
val = ",".join([str(item) for item in val])
format_msg(4, "%s: %s" % (key, val))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment