Use default if gearman-plugin None for node_labels
The default for node_labels is expected to be empty list not None. Change-Id: I60ae82b5ef86aab5e20e91e25302c42390d2ac17
This commit is contained in:
parent
f564b28ee3
commit
f10505fbb2
@ -424,7 +424,7 @@ class Gearman(object):
|
||||
build = self.builds.get(job.unique)
|
||||
if build:
|
||||
data = getJobData(job)
|
||||
build.node_labels = data.get('node_labels')
|
||||
build.node_labels = data.get('node_labels', [])
|
||||
build.node_name = data.get('node_name')
|
||||
if not build.canceled:
|
||||
if result is None:
|
||||
|
Loading…
Reference in New Issue
Block a user