From 95607e974823ce502e10f02f947106b60b79a70d Mon Sep 17 00:00:00 2001 From: henriquetruta Date: Wed, 1 Jul 2015 11:18:13 -0300 Subject: [PATCH] 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 --- saharaclient/api/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/saharaclient/api/shell.py b/saharaclient/api/shell.py index 4f492d20..dc773fd6 100644 --- a/saharaclient/api/shell.py +++ b/saharaclient/api/shell.py @@ -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',