From ed72318ce44b25bb050dc1a25357f31dbe17278c Mon Sep 17 00:00:00 2001 From: Jana Cupova Date: Tue, 31 Jan 2023 10:39:51 +0100 Subject: [PATCH] CLI download-tasks has sorted tasks in check closed/not closed tasks Fixes: https://pagure.io/koji/issue/3671 --- cli/koji_cli/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index c45f6550..34694173 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -6968,7 +6968,7 @@ def anon_handle_download_task(options, session, args): if task["id"] not in required_tasks: required_tasks[task["id"]] = task - for task_id in required_tasks: + for task_id in sorted(required_tasks): task_state = koji.TASK_STATES.get(required_tasks[task_id]["state"]) if task_state != "CLOSED": if task_id == base_task_id: