mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Fixes args to list_jobs
This commit is contained in:
parent
699912ef9c
commit
d46e43281d
@ -519,8 +519,12 @@ def last_run(ext_source=None,
|
||||
log.info('The metadata parameter must be specified as a dictionary')
|
||||
return False
|
||||
|
||||
_all_jobs = list_jobs(ext_source, outputter, metadata,
|
||||
function, target, display_progress)
|
||||
_all_jobs = list_jobs(ext_source=ext_source,
|
||||
outputter=outputter,
|
||||
search_metadata=metadata,
|
||||
search_function=function,
|
||||
search_target=target,
|
||||
display_progress=display_progress)
|
||||
if _all_jobs:
|
||||
last_job = sorted(_all_jobs)[-1]
|
||||
return print_job(last_job, ext_source)
|
||||
|
Loading…
Reference in New Issue
Block a user