aboutsummaryrefslogtreecommitdiff
path: root/lock_machine.py
diff options
context:
space:
mode:
authorRyan Beltran <ryanbeltran@chromium.org>2022-03-10 01:29:14 +0000
committerCommit Bot <commit-bot@chromium.org>2022-03-10 18:12:51 +0000
commit5a39dbb8af44918e5b1f4d509ed475c70bbf4dfa (patch)
tree33caa13634c245e2e67eb89ebac99aad69363974 /lock_machine.py
parent128417b250ed7597a4adf548a6ae879c3f028736 (diff)
downloadtoolchain-utils-5a39dbb8af44918e5b1f4d509ed475c70bbf4dfa.tar.gz
lock_machine: remove python2 from call to swarming
swarming.py is being called with python2 which no longer exists in chrotomation. This was being done becuase swarming.py did not support python3 but this is no longer the case. BUG=b:221777277 TEST=manually verified that call executes the write script Change-Id: I2ec50a6f10b597ac7ca0a478e83eb9e2a5e3bb5e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/3514287 Commit-Queue: George Burgess <gbiv@chromium.org> Tested-by: George Burgess <gbiv@chromium.org> Reviewed-by: George Burgess <gbiv@chromium.org>
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)