From 8c4151a77919661d091722283646e5b7bb2064bb Mon Sep 17 00:00:00 2001 From: Keith Suderman Date: Tue, 20 Jun 2023 12:49:12 -0400 Subject: [PATCH] Fix job list --- abm/lib/job.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/abm/lib/job.py b/abm/lib/job.py index 673d7dd..55370c0 100644 --- a/abm/lib/job.py +++ b/abm/lib/job.py @@ -35,9 +35,9 @@ def list(context: Context, args: list): log.debug("Getting job list") if history_id: history_id = find_history(gi, history_id) - if history_id is None: - print("ERROR: No such history") - return + if history_id is None: + print("ERROR: No such history") + return job_list = gi.jobs.get_jobs(state=state, history_id=history_id) log.debug(f"Iterating over job list with {len(job_list)} items") for job in job_list: