From 8ce57bc25adf971e2da22630c3e72c92dd1d945a Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Tue, 15 Mar 2016 18:48:10 -0400 Subject: [PATCH] Fix accessing property --- master.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/master.cfg b/master.cfg index 600dee3..6080741 100644 --- a/master.cfg +++ b/master.cfg @@ -391,7 +391,7 @@ class MyMailNotifier (mail.MailNotifier): """Extend the regular MailNotifier class in order to filter e-mails by scheduler.""" def isMailNeeded (self, build): - if build.properties.getProperty ('scheduler') is not 'racy': + if Property ('scheduler') != 'racy': return mail.MailNotifier.isMailNeeded (self, build) else: return False @@ -574,7 +574,7 @@ class CleanupBreakageLockfile (ShellCommand): def scheduler_is_racy (step): - return step.build.properties.getProperty ('scheduler') == 'racy' + return Property ('scheduler') == 'racy' def scheduler_is_not_racy (step): return step.build.properties.getProperty ('scheduler') != 'racy'