Fix accessing property
This commit is contained in:
parent
1ebc908ed0
commit
8ce57bc25a
1 changed files with 2 additions and 2 deletions
|
@ -391,7 +391,7 @@ class MyMailNotifier (mail.MailNotifier):
|
||||||
"""Extend the regular MailNotifier class in order to filter e-mails by
|
"""Extend the regular MailNotifier class in order to filter e-mails by
|
||||||
scheduler."""
|
scheduler."""
|
||||||
def isMailNeeded (self, build):
|
def isMailNeeded (self, build):
|
||||||
if build.properties.getProperty ('scheduler') is not 'racy':
|
if Property ('scheduler') != 'racy':
|
||||||
return mail.MailNotifier.isMailNeeded (self, build)
|
return mail.MailNotifier.isMailNeeded (self, build)
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
@ -574,7 +574,7 @@ class CleanupBreakageLockfile (ShellCommand):
|
||||||
|
|
||||||
|
|
||||||
def scheduler_is_racy (step):
|
def scheduler_is_racy (step):
|
||||||
return step.build.properties.getProperty ('scheduler') == 'racy'
|
return Property ('scheduler') == 'racy'
|
||||||
|
|
||||||
def scheduler_is_not_racy (step):
|
def scheduler_is_not_racy (step):
|
||||||
return step.build.properties.getProperty ('scheduler') != 'racy'
|
return step.build.properties.getProperty ('scheduler') != 'racy'
|
||||||
|
|
Loading…
Reference in a new issue