aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crosperf/default_remotes2
-rwxr-xr-xlock_machine.py7
2 files changed, 4 insertions, 5 deletions
diff --git a/crosperf/default_remotes b/crosperf/default_remotes
index c6525c6b..b7e25fca 100644
--- a/crosperf/default_remotes
+++ b/crosperf/default_remotes
@@ -4,4 +4,4 @@ coral : chromeos6-row5-rack6-host1.cros chromeos6-row5-rack6-host3.c
elm : chromeos6-row14-rack15-host21.cros
kefka : chromeos6-row6-rack22-host2.cros chromeos6-row6-rack22-host3.cros chromeos6-row11-rack22-host7.cros
nautilus : chromeos6-row5-rack10-host1.cros chromeos6-row5-rack10-host3.cros
-snappy : chromeos8-row12-rack17-host2
+snappy : chromeos8-row12-rack17-host1 chromeos8-row12-rack17-host2
diff --git a/lock_machine.py b/lock_machine.py
index 8bc3ec22..b95678e8 100755
--- a/lock_machine.py
+++ b/lock_machine.py
@@ -15,11 +15,10 @@ import getpass
import os
import sys
-import file_lock_machine
-
from cros_utils import command_executer
from cros_utils import logger
from cros_utils import machines
+import file_lock_machine
class LockException(Exception):
@@ -407,8 +406,8 @@ class LockManager(object):
if os.path.exists(self.CROSFLEET_CREDENTIAL):
credential = '-service-account-json %s' % self.CROSFLEET_CREDENTIAL
cmd = (('%s dut lease -minutes %s %s %s %s') %
- (self.CROSFLEET_PATH, self.LEASE_MINS, credential, '-host'
- if '.cros' in machine else '-board', machine.rstrip('.cros')))
+ (self.CROSFLEET_PATH, self.LEASE_MINS, credential, '-host',
+ machine.rstrip('.cros')))
# Wait 8 minutes for server to start the lease task, if not started,
# we will treat it as unavailable.
check_interval_time = 480