pull owner from correct place
Fixes https://pagure.io/koji/issue/1604 In this function, we have binfo, buildinfo, and self.buildinfo. A little confusing ;) Note that self.buildinfo['owner'] is validated in prep_build()
This commit is contained in:
parent
bee68998b7
commit
8ecfb4dc5b
1 changed files with 1 additions and 4 deletions
|
|
@ -5863,10 +5863,7 @@ class CG_Importer(object):
|
|||
extra = json.dumps(buildinfo['extra'])
|
||||
else:
|
||||
extra = None
|
||||
if buildinfo.get('owner'):
|
||||
owner = get_user(self.buildinfo['owner'], strict=True)['id']
|
||||
else:
|
||||
owner = context.session.user_id
|
||||
owner = self.buildinfo.get('owner', context.session.user_id)
|
||||
source = self.buildinfo.get('source')
|
||||
st_complete = koji.BUILD_STATES['COMPLETE']
|
||||
st_old = buildinfo['state']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue