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:
@@ -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)
|
||||
|
||||
|
||||
|
||||
@@ -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 |',
|
||||
'+----+------------+------------+--------+',
|
||||
'+----+------------+------------+--------+',
|
||||
''
|
||||
])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user