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:
parent
4ab052733d
commit
f01b0d817b
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user