fix ci
This commit is contained in:
parent
9f51cc129e
commit
1dc2c9368c
|
@ -56,7 +56,7 @@ def run_linux_poweroff_externally_provisioned():
|
||||||
start_lines += [" recipe_arg_overrides:\n"]
|
start_lines += [" recipe_arg_overrides:\n"]
|
||||||
start_lines += [" run_farm_hosts_to_use:\n"]
|
start_lines += [" run_farm_hosts_to_use:\n"]
|
||||||
for ip in instance_ips:
|
for ip in instance_ips:
|
||||||
start_lines += [f""" - "centos@{ip}: one_fpga_spec"\n"""]
|
start_lines += [f""" - "centos@{ip}": one_fpga_spec\n"""]
|
||||||
|
|
||||||
file_line_swap(
|
file_line_swap(
|
||||||
workload_full,
|
workload_full,
|
||||||
|
|
|
@ -523,13 +523,17 @@ class ExternallyProvisioned(RunFarm):
|
||||||
|
|
||||||
for runhost in runhosts_list:
|
for runhost in runhosts_list:
|
||||||
if not isinstance(runhost, dict):
|
if not isinstance(runhost, dict):
|
||||||
raise Exception("Unknown runhost handle")
|
raise Exception(f"Invalid runhost to spec mapping for {runhost}.")
|
||||||
|
|
||||||
items = runhost.items()
|
items = runhost.items()
|
||||||
|
|
||||||
assert (len(items) == 1), f"dict type 'run_hosts' items map a single host name to a host spec. Not: {pprint.pformat(runhost)}"
|
assert (len(items) == 1), f"dict type 'run_hosts' items map a single host name to a host spec. Not: {pprint.pformat(runhost)}"
|
||||||
|
|
||||||
ip_addr, host_spec_name = next(iter(items))
|
ip_addr, host_spec_name = next(iter(items))
|
||||||
|
|
||||||
|
if host_spec_name not in runhost_specs.keys():
|
||||||
|
raise Exception(f"Unknown runhost spec of {host_spec_name}")
|
||||||
|
|
||||||
host_spec = runhost_specs[host_spec_name]
|
host_spec = runhost_specs[host_spec_name]
|
||||||
|
|
||||||
# populate mapping helpers based on runhost_specs:
|
# populate mapping helpers based on runhost_specs:
|
||||||
|
|
Loading…
Reference in New Issue