aboutsummaryrefslogtreecommitdiff
path: root/lock_machine.py
diff options
context:
space:
mode:
Diffstat (limited to 'lock_machine.py')
-rwxr-xr-xlock_machine.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/lock_machine.py b/lock_machine.py
index 03c8c991..1a41290b 100755
--- a/lock_machine.py
+++ b/lock_machine.py
@@ -379,10 +379,7 @@ class LockManager(object):
if os.path.exists(self.CROSFLEET_CREDENTIAL):
credential = '--auth-service-account-json %s' % self.CROSFLEET_CREDENTIAL
swarming = os.path.join(self.chromeos_root, self.SWARMING)
- # TODO(zhizhouy): Swarming script doesn't support python3 so explicitly
- # launch it with python2 until migrated.
- cmd = (('python2 %s '
- 'query --swarming https://chromeos-swarming.appspot.com '
+ cmd = (('%s query --swarming https://chromeos-swarming.appspot.com '
"%s 'bots/list?is_dead=FALSE&dimensions=dut_name:%s'") %
(swarming, credential, machine.rstrip('.cros')))
exit_code, stdout, stderr = self.ce.RunCommandWOutput(cmd)