add show job command field for freezerclient

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

Change-Id: I3ac80e47dca6443519fc679cf099b11ccbc9185d
This commit is contained in:
gecong1973 2018-10-28 19:48:40 -07:00 committed by gecong
parent 4ab052733d
commit f01b0d817b

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