mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-03 02:37:48 +08:00
Fix NameError.
Here, `task_id` was referenced before it was defined. This fixes that error and adds a little more color to the log statement.
This commit is contained in:
@@ -85,7 +85,9 @@ class MBSProducer(PollingProducer):
|
||||
# to new module tag. Checking them would be waste of resources.
|
||||
if component_build.reused_component_id:
|
||||
log.debug('Skipping check for task "{0}", '
|
||||
'the component has been reused.'.format(task_id))
|
||||
'the component has been reused ("{1}").'.format(
|
||||
component_build.task_id,
|
||||
component_build.reused_component_id))
|
||||
continue
|
||||
|
||||
task_id = component_build.task_id
|
||||
|
||||
Reference in New Issue
Block a user