Sorting 'job-list' output by start_time

It is much more user friendly to see the job executions sorted by
start_time, so the user will be able to see his last execution in an
easier way.

Closes-Bug 1470525

Change-Id: Ieed8dafd6122ef00ae2fd1ba48a8571cd10a6cbf
This commit is contained in:
henriquetruta
2015-07-01 11:18:13 -03:00
parent b8bfbd6966
commit 95607e9748

View File

@@ -815,7 +815,7 @@ def do_job_list(cs, args):
job.status = job.info['status']
# TODO(mattf): why can cluster_id be None?
columns = ('id', 'cluster_id', 'start_time', 'status')
utils.print_list(jobs, columns)
utils.print_list(jobs, columns, sortby_index=2)
@utils.arg('--id',