Fix confusing debug message in configloader.py
Log debug message for applying template after we match, not before. To
avoid the impression we are applying configuration to pipelines that
templates are not apart of.
Change-Id: I77d93a9c46f536d0258d3cb1d0a9fd92eb272d17
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
diff --git a/zuul/configloader.py b/zuul/configloader.py
index b41dcc1..3f723fb 100644
--- a/zuul/configloader.py
+++ b/zuul/configloader.py
@@ -255,9 +255,10 @@
# create the jobs in the final definition as needed.
pipeline_defined = False
for template in configs:
- ProjectParser.log.debug("Applying template %s to pipeline %s" %
- (template.name, pipeline.name))
if pipeline.name in template.pipelines:
+ ProjectParser.log.debug(
+ "Applying template %s to pipeline %s" %
+ (template.name, pipeline.name))
pipeline_defined = True
template_pipeline = template.pipelines[pipeline.name]
project_pipeline.job_tree.inheritFrom(