Skip to content

Commit

Permalink
ForceScheduler: Fix issue when creating a 'simple' CodebaseParameter
Browse files Browse the repository at this point in the history
In case we give strings to the parameters (to get fixed parameters), those should be converted as such.
  • Loading branch information
benallard committed Oct 22, 2014
1 parent 130751b commit 5d8451a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master/buildbot/schedulers/forcesched.py
Expand Up @@ -515,7 +515,7 @@ def __init__(self,
for k, v in fields_dict.items():
if v is DefaultField:
v = StringParameter(name=k, label=k.capitalize() + ":")
if isinstance(branch, basestring):
elif isinstance(v, basestring):
v = FixedParameter(name=k, value=v)
fields_dict[k] = v

Expand Down

0 comments on commit 5d8451a

Please sign in to comment.