Using variable on isMailNeeded
This commit is contained in:
parent
8dafb917d8
commit
3033de6583
1 changed files with 3 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue