Remove the unused "owner" parameter from KojiModuleBuilder.get_session

This commit is contained in:
mprahl
2018-12-10 09:59:42 -05:00
parent 00693cbd00
commit 96f82443aa
6 changed files with 21 additions and 22 deletions

View File

@@ -588,8 +588,7 @@ class SCMBuilder(BaseBuilder):
if not self.koji_session:
# If Koji is not configured on the system, then just return 0.0 for components
try:
self.koji_session = KojiModuleBuilder.get_session(
self.config, self.owner, login=False)
self.koji_session = KojiModuleBuilder.get_session(self.config, login=False)
# If the component has not been built before, then None is returned. Instead,
# let's return 0.0 so the type is consistent
return self.koji_session.getAverageBuildDuration(component.package) or 0.0