From 3033de6583f7322664ce62c9de8dc48a5f927eb5 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Sat, 23 Jul 2016 09:10:41 -0400 Subject: [PATCH] Using variable on isMailNeeded --- master.cfg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/master.cfg b/master.cfg index 6d5e026..970243f 100644 --- a/master.cfg +++ b/master.cfg @@ -405,9 +405,10 @@ class MyMailNotifier (mail.MailNotifier): """Extend the regular MailNotifier class in order to filter e-mails by scheduler.""" def isMailNeeded (self, build, results): - if build.properties.getProperty ('scheduler').startswith ('racy'): + prop = build.properties.getProperty ('scheduler') + if prop.startswith ('racy'): return False - elif build.properties.getProperty ('scheduler').startswith ('try'): + elif prop.startswith ('try'): if not self.sendToInterestedUsers: # This means we're dealing with mn. We only send # e-mail on mn_try.