Merge "Only count live items for relative priority"

This commit is contained in:
Zuul 2018-12-01 15:43:27 +00:00 committed by Gerrit Code Review
commit 271feec3ca
1 changed files with 3 additions and 1 deletions

View File

@ -87,7 +87,9 @@ class PipelineManager(object):
def getNodePriority(self, item):
items = self.pipeline.getAllItems()
items = [i for i in items if i.change.project == item.change.project]
items = [i for i in items
if i.change.project == item.change.project and
i.live]
for idx, val in enumerate(items):
if item == val:
return idx