From 3ac609c43c8439c6c4c36d681b69d30b7c1c94c1 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Tue, 15 Nov 2016 17:12:08 -0500 Subject: [PATCH] Pass config from Stream to FailEvent Every time we create a FailEvent for a failed job gerrit comment event we're reconstructing a Config object unnecessarily, we can just pass the config in from the Stream object to the FailEvent object. Change-Id: Ibd85a4f0e813bc9bfff69de8f4f42951face88e4 --- elastic_recheck/elasticRecheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elastic_recheck/elasticRecheck.py b/elastic_recheck/elasticRecheck.py index 9422e6af..0453a3c8 100644 --- a/elastic_recheck/elasticRecheck.py +++ b/elastic_recheck/elasticRecheck.py @@ -327,7 +327,7 @@ class Stream(object): # nothing to see here, lets try the next event continue - fevent = FailEvent(event, failed_jobs) + fevent = FailEvent(event, failed_jobs, self.config) # bail if the failure is from a project # that hasn't run any of the included jobs