adjust comments

This commit is contained in:
Mike McLean 2024-04-02 13:15:27 -04:00 committed by Tomas Kopecek
parent 085d97fb2d
commit 6fb33731d9
2 changed files with 2 additions and 2 deletions

View file

@ -748,7 +748,7 @@ def make_task(method, arglist, **opts):
opts['id'] = task_id
koji.plugin.run_callbacks(
'postTaskStateChange', attribute='state', old=None, new='FREE', info=opts)
scheduler.auto_arch_refuse(task_id) # temporary hack
scheduler.auto_arch_refuse(task_id) # temporary workaround
return task_id

View file

@ -106,7 +106,7 @@ def set_refusal(hostID, taskID, soft=True, by_host=False, msg=''):
def auto_arch_refuse(task_id):
"""Set refusals for hosts based on task parameters"""
# HACK
# This is a temporary workaround
try:
_auto_arch_refuse(task_id)
except Exception: