Including 'start_time' column at 'sahara job-list' command

This patch adds the 'start_time' column to python-saharaclient CLI.
It makes it easier to the user to look for his newest job executions.

Partial-Bug 1470525

Change-Id: Id03d8f8fb42d9d3168804e78e34743c263d5a9a0
This commit is contained in:
henriquetruta
2015-06-15 13:18:50 -03:00
parent 3260c2f66e
commit b8bfbd6966
2 changed files with 5 additions and 5 deletions

View File

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

View File

@@ -346,10 +346,10 @@ class ShellTestKeystoneV3(ShellTest):
def test_job_list(self):
expected = '\n'.join([
'+----+------------+--------+',
'| id | cluster_id | status |',
'+----+------------+--------+',
'+----+------------+--------+',
'+----+------------+------------+--------+',
'| id | cluster_id | start_time | status |',
'+----+------------+------------+--------+',
'+----+------------+------------+--------+',
''
])