Add default task ID to prep_repo_init/done
Fixes: https://pagure.io/koji/issue/888
This commit is contained in:
parent
e10809c5b8
commit
fa774f0a9b
1 changed files with 2 additions and 0 deletions
|
|
@ -279,6 +279,7 @@ def prep_untag(cbtype, *args, **kws):
|
||||||
@convert_datetime
|
@convert_datetime
|
||||||
@callback('postRepoInit')
|
@callback('postRepoInit')
|
||||||
def prep_repo_init(cbtype, *args, **kws):
|
def prep_repo_init(cbtype, *args, **kws):
|
||||||
|
kws['task_id'] = kws.get('task_id')
|
||||||
address = 'repo.init'
|
address = 'repo.init'
|
||||||
props = {'type': cbtype[4:],
|
props = {'type': cbtype[4:],
|
||||||
'tag': kws['tag']['name'],
|
'tag': kws['tag']['name'],
|
||||||
|
|
@ -290,6 +291,7 @@ def prep_repo_init(cbtype, *args, **kws):
|
||||||
@convert_datetime
|
@convert_datetime
|
||||||
@callback('postRepoDone')
|
@callback('postRepoDone')
|
||||||
def prep_repo_done(cbtype, *args, **kws):
|
def prep_repo_done(cbtype, *args, **kws):
|
||||||
|
kws['task_id'] = kws.get('task_id')
|
||||||
address = 'repo.done'
|
address = 'repo.done'
|
||||||
props = {'type': cbtype[4:],
|
props = {'type': cbtype[4:],
|
||||||
'tag': kws['repo']['tag_name'],
|
'tag': kws['repo']['tag_name'],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue