Skip to content

Commit

Permalink
Set buttonName to default scheduler name if not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
ssavrimoutou committed Jun 16, 2015
1 parent 9cfb1db commit ede9ad5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions master/buildbot/schedulers/forcesched.py
Expand Up @@ -568,8 +568,7 @@ def __init__(self, name, builderNames,
buttonName="Force Build",
codebases=None,
label=None,
properties=None,
):
properties=None):
"""
Initialize a ForceScheduler.
Expand Down Expand Up @@ -669,7 +668,7 @@ def __init__(self, name, builderNames,
self.all_fields.extend(self.forcedProperties)

self.reasonString = reasonString
self.buttonName = buttonName
self.buttonName = name if buttonName is None else buttonName

def checkIfType(self, obj, chkType):
return isinstance(obj, chkType)
Expand Down

0 comments on commit ede9ad5

Please sign in to comment.