mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-03 02:37:48 +08:00
Merge #1407 Do not ignore building components to reset state when submit an existing module build
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user