Merge "Simplified the scheduler very slightly"

This commit is contained in:
Jenkins 2014-08-05 19:38:53 +00:00 committed by Gerrit Code Review
commit 8c5297ac15
1 changed files with 1 additions and 3 deletions

View File

@ -919,9 +919,7 @@ class Scheduler(threading.Thread):
pipelines = []
data['pipelines'] = pipelines
keys = self.layout.pipelines.keys()
for key in keys:
pipeline = self.layout.pipelines[key]
for pipeline in self.layout.pipelines.values():
pipelines.append(pipeline.formatStatusJSON())
return json.dumps(data)