From 25dc568eee8f93b42660bacb4b4969961e41e343 Mon Sep 17 00:00:00 2001 From: Jana Cupova Date: Apr 20 2021 12:33:48 +0000 Subject: Add default task ID to prep_repo_init/done Fixes: https://pagure.io/koji/issue/888 --- diff --git a/plugins/hub/protonmsg.py b/plugins/hub/protonmsg.py index 0f5521a..83b3b7c 100644 --- a/plugins/hub/protonmsg.py +++ b/plugins/hub/protonmsg.py @@ -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'],