On Fri, Oct 01, 2010 at 03:32:35PM +0200, Michael Hanselmann wrote: > This helps to find a value for complex opcodes. > > Signed-off-by: Michael Hanselmann <[email protected]> > --- > scripts/gnt-job | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/scripts/gnt-job b/scripts/gnt-job > index df2ced9..6e99bc0 100755 > --- a/scripts/gnt-job > +++ b/scripts/gnt-job > @@ -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.iterkeys()):
s/iterkeys/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)) then LGTM
signature.asc
Description: Digital signature
