add show job command field for client v1

The show job field is not enough, this patch
add more detailed field for v1

Change-Id: Ia81e46cf70f727e5ebca59acf84da00082ac1529
This commit is contained in:
gecong1973 2018-11-05 23:07:11 -08:00 committed by gecong
parent 026ae218b6
commit 5143444225

View File

@ -50,6 +50,10 @@ class JobShow(show.ShowOne):
'Start Date',
'End Date',
'Interval',
'Status',
'Result',
'Current pid',
'Event'
)
data = (
job.get('job_id'),
@ -61,6 +65,10 @@ class JobShow(show.ShowOne):
job.get('job_schedule', {}).get('schedule_start_date', ''),
job.get('job_schedule', {}).get('schedule_end_date', ''),
job.get('job_schedule', {}).get('schedule_interval', ''),
job.get('job_schedule', {}).get('status', ''),
job.get('job_schedule', {}).get('result', ''),
job.get('job_schedule', {}).get('current_pid', ''),
job.get('job_schedule', {}).get('event', ''),
)
return column, data