move btypes from headers to body of proton message

Fixes: https://pagure.io/koji/issue/3017
This commit is contained in:
Tomas Kopecek 2021-09-08 14:19:13 +02:00
parent 70817c9cea
commit c41559f1e9
2 changed files with 27 additions and 12 deletions

View file

@ -210,13 +210,12 @@ def prep_build_state_change(cbtype, *args, **kws):
old = koji.BUILD_STATES[old]
new = koji.BUILD_STATES[kws['new']]
address = 'build.' + new.lower()
btypeinfo = get_build_type(kws['info'])
kws['info'] = _strip_extra(kws['info'])
kws['btypes'] = get_build_type(kws['info'])
props = {'type': cbtype[4:],
'name': kws['info']['name'],
'version': kws['info']['version'],
'release': kws['info']['release'],
'btypes': btypeinfo,
'attribute': kws['attribute'],
'old': old,
'new': new}