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

Unified Diff: scheduler/drone_manager.py

Issue 6124004: Revert "Merge remote branch 'cros/upstream' into autotest-rebase" (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: Created 9 years, 11 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 | « frontend/tko/rpc_interface_unittest.py ('k') | scheduler/drones.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scheduler/drone_manager.py
diff --git a/scheduler/drone_manager.py b/scheduler/drone_manager.py
index e094f14f1fb080ef9108b90b287b0b46f49e78ae..75724f382b83c0849b01ff2ed5194134ab4c0ff1 100644
--- a/scheduler/drone_manager.py
+++ b/scheduler/drone_manager.py
@@ -159,7 +159,8 @@ class DroneManager(object):
self._results_dir = base_results_dir
for hostname in drone_hostnames:
- self._add_drone(hostname)
+ drone = self._add_drone(hostname)
+ drone.call('initialize', self.absolute_path(''))
if not self._drones:
# all drones failed to initialize
@@ -204,9 +205,8 @@ class DroneManager(object):
def _add_drone(self, hostname):
logging.info('Adding drone %s' % hostname)
drone = drones.get_drone(hostname)
- if drone:
- self._drones[drone.hostname] = drone
- drone.call('initialize', self.absolute_path(''))
+ self._drones[drone.hostname] = drone
+ return drone
def _remove_drone(self, hostname):
« no previous file with comments | « frontend/tko/rpc_interface_unittest.py ('k') | scheduler/drones.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698