From f01b0d817be7b795c383d1d9e25859d597bba50c Mon Sep 17 00:00:00 2001 From: gecong1973 Date: Sun, 28 Oct 2018 19:48:40 -0700 Subject: [PATCH] add show job command field for freezerclient The show job field is not enough, this patch add more detailed field Change-Id: I3ac80e47dca6443519fc679cf099b11ccbc9185d --- freezerclient/v2/jobs.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/freezerclient/v2/jobs.py b/freezerclient/v2/jobs.py index 1d1cc02..78ff87f 100644 --- a/freezerclient/v2/jobs.py +++ b/freezerclient/v2/jobs.py @@ -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