Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(716)

Unified Diff: scripts/master/master_utils.py

Issue 2454643002: Fix return value of new slave-distribution function (Closed)
Patch Set: Fix Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | scripts/master/unittests/master_utils_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/master/master_utils.py
diff --git a/scripts/master/master_utils.py b/scripts/master/master_utils.py
index ab516a83a44dca76fc7b83e4851030a98562d713..f0f5e1bb14e5d36185f345130b0519312e402447 100644
--- a/scripts/master/master_utils.py
+++ b/scripts/master/master_utils.py
@@ -705,8 +705,8 @@ class PreferredBuilderNextSlaveFuncNG(object):
# randomly.
key = prefs.most_common()[0][0]
return self._choice(
- s for s in slave_builders
- if s.slave.properties.getProperty('preferred_builder') == key)
+ [s for s in slave_builders
+ if s.slave.properties.getProperty('preferred_builder') == key])
def SetMasterProcessName():
« no previous file with comments | « no previous file | scripts/master/unittests/master_utils_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698