Fixing property, again
This commit is contained in:
parent
12066148f2
commit
0cf82e2960
1 changed files with 3 additions and 3 deletions
|
@ -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 Property ('scheduler') != 'racy':
|
||||
if build.properties.getProperty ('scheduler') != 'racy':
|
||||
return mail.MailNotifier.isMailNeeded (self, build)
|
||||
else:
|
||||
return False
|
||||
|
@ -574,10 +574,10 @@ class CleanupBreakageLockfile (ShellCommand):
|
|||
|
||||
|
||||
def scheduler_is_racy (step):
|
||||
return Property ('scheduler') == 'racy'
|
||||
return step.getProperty ('scheduler') == 'racy'
|
||||
|
||||
def scheduler_is_not_racy (step):
|
||||
return Property ('scheduler') != 'racy'
|
||||
return step.getProperty ('scheduler') != 'racy'
|
||||
|
||||
#######################
|
||||
#### Build Factory ####
|
||||
|
|
Loading…
Reference in a new issue