autoserv: Unconditionally convert machine names to dict.
stage_ssp was converting machine names to dict only when running inside
the lab. There is no reason to do this since
get_machine_dicts already stubs out host_afe when not in lab. By always
using a dict, we can simplify the control files' handling of the
machines list.
BUG=chromium:678430
TEST=None.
Change-Id: Ic3e39eeab74772c382e7c2b349b585ddb3c2d8b6
Reviewed-on: https://chromium-review.googlesource.com/426770
Commit-Ready: Prathmesh Prabhu <pprabhu@chromium.org>
Tested-by: Prathmesh Prabhu <pprabhu@chromium.org>
Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
Reviewed-by: Allen Li <ayatane@chromium.org>
diff --git a/server/autoserv b/server/autoserv
index 37e073c..6e14399 100755
--- a/server/autoserv
+++ b/server/autoserv
@@ -138,10 +138,8 @@
side package is staged successfully.
"""
machines_list = _get_machines(parser)
- if bool(parser.options.lab):
- machines_list = server_job.get_machine_dicts(
- machines_list, parser.options.lab,
- parser.options.host_attributes)
+ machines_list = server_job.get_machine_dicts(
+ machines_list, parser.options.lab, parser.options.host_attributes)
# If test_source_build is not specified, default to use server-side test
# code from build specified in --image.