mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Adding the StartTime to the output of the jobs.active runner.
This commit is contained in:
parent
89ef86096c
commit
b7d5bf57c2
@ -46,8 +46,9 @@ def active(outputter=None, display_progress=False):
|
||||
if not isinstance(data, list):
|
||||
continue
|
||||
for job in data:
|
||||
log.info('job {0}'.format(job))
|
||||
if not job['jid'] in ret:
|
||||
ret[job['jid']] = _format_job_instance(job)
|
||||
ret[job['jid']] = _format_jid_instance(job['jid'], job)
|
||||
ret[job['jid']].update({'Running': [{minion: job.get('pid', None)}], 'Returned': []})
|
||||
else:
|
||||
ret[job['jid']]['Running'].append({minion: job['pid']})
|
||||
|
Loading…
Reference in New Issue
Block a user