Merge #1407 Do not ignore building components to reset state when submit an existing module build

This commit is contained in:
Jan Kaluža
2019-09-16 06:11:04 +00:00

View File

@@ -975,7 +975,7 @@ def submit_module_build(db_session, username, mmd, params):
log.debug("Resuming existing module build %r" % module)
# Reset all component builds that didn't complete
for component in module.component_builds:
if component.state and component.state != koji.BUILD_STATES["COMPLETE"]:
if component.state is not None and component.state != koji.BUILD_STATES["COMPLETE"]:
component.state = None
component.state_reason = None
db_session.add(component)