mirror of
git://git.yoctoproject.org/yocto-autobuilder2.git
synced 2025-07-19 20:59:02 +02:00
reporters/wikilog: Avoid overwriting variable
The log boolean variable conflicted with log.err() calls, fix this and avoid tracebacks. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
80eec53950
commit
a304971d89
|
@ -90,16 +90,16 @@ class WikiLog(service.BuildbotService):
|
|||
|
||||
# Only run the logging code for builds in the monitored_parents list, or builds with
|
||||
# failures (to try and cut down on wiki noise)
|
||||
log = False
|
||||
havelog = False
|
||||
headerpresent = False
|
||||
if build['results'] in [FAILURE, EXCEPTION, WARNINGS]:
|
||||
log = True
|
||||
havelog = True
|
||||
if (parent and parent['builder']['name'] in monitored_parents) or \
|
||||
(build['builder']['name'] in monitored_parents):
|
||||
log = True
|
||||
havelog = True
|
||||
headerpresent = True
|
||||
|
||||
if not log:
|
||||
if not havelog:
|
||||
return
|
||||
|
||||
if not headerpresent:
|
||||
|
|
Loading…
Reference in New Issue
Block a user