Add default task ID to prep_repo_init/done

Fixes: https://pagure.io/koji/issue/888
This commit is contained in:
Jana Cupova 2021-04-20 14:10:37 +02:00 committed by Tomas Kopecek
parent e10809c5b8
commit fa774f0a9b

View file

@ -279,6 +279,7 @@ def prep_untag(cbtype, *args, **kws):
@convert_datetime
@callback('postRepoInit')
def prep_repo_init(cbtype, *args, **kws):
kws['task_id'] = kws.get('task_id')
address = 'repo.init'
props = {'type': cbtype[4:],
'tag': kws['tag']['name'],
@ -290,6 +291,7 @@ def prep_repo_init(cbtype, *args, **kws):
@convert_datetime
@callback('postRepoDone')
def prep_repo_done(cbtype, *args, **kws):
kws['task_id'] = kws.get('task_id')
address = 'repo.done'
props = {'type': cbtype[4:],
'tag': kws['repo']['tag_name'],