Skip to content

Commit 167ee01

Browse files
committed
PR#3998: typo in set_refusal
Merges #3998 https://pagure.io/koji/pull-request/3998 Fixes: #3997 https://pagure.io/koji/issue/3997 host.refuseTask failure
2 parents 6198e29 + 2a6e18f commit 167ee01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kojihub/scheduler.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ def get_tasks_for_host(hostID, retry=True):
9191

9292
def set_refusal(hostID, taskID, soft=True, by_host=False, msg=''):
9393
data = {
94-
'task_id': kojihub.convert_value(hostID, cast=int),
95-
'host_id': kojihub.convert_value(taskID, cast=int),
94+
'host_id': kojihub.convert_value(hostID, cast=int),
95+
'task_id': kojihub.convert_value(taskID, cast=int),
9696
'soft': kojihub.convert_value(soft, cast=bool),
9797
'by_host': kojihub.convert_value(by_host, cast=bool),
9898
'msg': kojihub.convert_value(msg, cast=str),

0 commit comments

Comments
 (0)