You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koji/2a6e18fa356f1aa2a1b5099e55e...

27 lines
924 B

From 2a6e18fa356f1aa2a1b5099e55e0af1c89ae4163 Mon Sep 17 00:00:00 2001
From: Mike McLean <mikem@redhat.com>
Date: Feb 05 2024 10:28:43 +0000
Subject: typo in set_refusal
Fixes https://pagure.io/koji/issue/3997
---
diff --git a/kojihub/scheduler.py b/kojihub/scheduler.py
index 815b0f1..961ef39 100644
--- a/kojihub/scheduler.py
+++ b/kojihub/scheduler.py
@@ -91,8 +91,8 @@ def get_tasks_for_host(hostID, retry=True):
def set_refusal(hostID, taskID, soft=True, by_host=False, msg=''):
data = {
- 'task_id': kojihub.convert_value(hostID, cast=int),
- 'host_id': kojihub.convert_value(taskID, cast=int),
+ 'host_id': kojihub.convert_value(hostID, cast=int),
+ 'task_id': kojihub.convert_value(taskID, cast=int),
'soft': kojihub.convert_value(soft, cast=bool),
'by_host': kojihub.convert_value(by_host, cast=bool),
'msg': kojihub.convert_value(msg, cast=str),