Set the owner on Koji CG builds

This commit is contained in:
mprahl
2018-01-30 09:05:35 -05:00
parent 5b4a8f6240
commit 477fa2ed6a
4 changed files with 28 additions and 4 deletions

View File

@@ -224,6 +224,10 @@ class KojiContentGenerator(object):
}
}
}
session = KojiModuleBuilder.get_session(self.config, None)
# Only add the CG build owner if the user exists in Koji
if session.getUser(self.owner):
ret[u'owner'] = self.owner
return ret
def _get_buildroot(self):