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
This commit is contained in:
parent
3afc6e6729
commit
3ac609c43c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user