From d46e43281d1578c651294b11966880711e18e76b Mon Sep 17 00:00:00 2001 From: Peter Baumgartner Date: Mon, 15 Jan 2018 10:17:02 -0700 Subject: [PATCH] Fixes args to list_jobs --- salt/runners/jobs.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/salt/runners/jobs.py b/salt/runners/jobs.py index a16191e757..d4327e32e6 100644 --- a/salt/runners/jobs.py +++ b/salt/runners/jobs.py @@ -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)