diff options
author | cmtice <cmtice@google.com> | 2015-07-24 11:37:34 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-07-24 21:54:46 +0000 |
commit | 25c94f1849f617166781903637099d962673c60a (patch) | |
tree | 981eae1cdc8b642d464003eea8fbeef088303a0c /afe_lock_machine.py | |
parent | 95cd449e2f4ebef9c6277c525b7d18df40c1cc9a (diff) | |
download | toolchain-utils-25c94f1849f617166781903637099d962673c60a.tar.gz |
Add lock_reason for local AFE server locking requests.
The local AFE server has been updated to use the newer code base,
and now it requires a locking reason (previously only the global
AFE server required one). Now the lock reason will be given
for both servers.
BUG=None
TEST=Tested in my work area with a local DUT.
Change-Id: I74ea1941b4c04d9647cc3bde6b1f1cce80c225b5
Reviewed-on: https://chrome-internal-review.googlesource.com/223810
Reviewed-by: Luis Lozano <llozano@chromium.org>
Reviewed-by: Caroline Tice <cmtice@google.com>
Commit-Queue: Caroline Tice <cmtice@google.com>
Tested-by: Caroline Tice <cmtice@google.com>
Diffstat (limited to 'afe_lock_machine.py')
-rwxr-xr-x | afe_lock_machine.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/afe_lock_machine.py b/afe_lock_machine.py index 54219cd4..29693cc7 100755 --- a/afe_lock_machine.py +++ b/afe_lock_machine.py @@ -352,10 +352,10 @@ class AFELockManager(object): if not should_lock_machine: action = 'unlock' kwargs = {'locked': should_lock_machine} + kwargs['lock_reason'] = 'toolchain user request (%s)' % self.user if machine in self.toolchain_lab_machines: m = machine.split('.')[0] - kwargs['lock_reason'] = 'toolchain user request (%s)' % self.user afe_server = self.afe else: m = machine |