fix task_id extraction for missing extra
Related: https://pagure.io/koji/issue/3906
This commit is contained in:
parent
7f177a0478
commit
4f78acca12
1 changed files with 3 additions and 1 deletions
|
|
@ -984,5 +984,7 @@ def extract_build_task(binfo):
|
|||
task_id = binfo.get('task_id')
|
||||
if task_id is None:
|
||||
# legacy OSBS task id location
|
||||
task_id = binfo.get('extra', {}).get('container_koji_task_id')
|
||||
extra = binfo.get('extra')
|
||||
if extra is not None:
|
||||
task_id = extra.get('container_koji_task_id')
|
||||
return task_id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue