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')
|
log.info('The metadata parameter must be specified as a dictionary')
|
||||||
return False
|
return False
|
||||||
|
|
||||||
_all_jobs = list_jobs(ext_source, outputter, metadata,
|
_all_jobs = list_jobs(ext_source=ext_source,
|
||||||
function, target, display_progress)
|
outputter=outputter,
|
||||||
|
search_metadata=metadata,
|
||||||
|
search_function=function,
|
||||||
|
search_target=target,
|
||||||
|
display_progress=display_progress)
|
||||||
if _all_jobs:
|
if _all_jobs:
|
||||||
last_job = sorted(_all_jobs)[-1]
|
last_job = sorted(_all_jobs)[-1]
|
||||||
return print_job(last_job, ext_source)
|
return print_job(last_job, ext_source)
|
||||||
|
Loading…
Reference in New Issue
Block a user