Commit d1e68dd7 authored by Sjoerd Simons's avatar Sjoerd Simons Committed by Guillaume Tucker

Allow for a local dispatcher configuration file

If the server does not provide extra dispatcher configuration check for
a local file to include in the runs. Useful to e.g. configure the IP to
use for communicating with the duts.
Signed-off-by: Sjoerd Simons's avatarSjoerd Simons <sjoerd.simons@collabora.co.uk>
parent d79e99a1
......@@ -761,6 +761,13 @@ def handle_start(msg, jobs, sock, master, zmq_config):
return
LOG.info("master => START(%d)", job_id)
try:
if dispatcher_config == "":
with open("/etc/lava-dispatcher/dispatcher.yaml") as f:
dispatcher_config = f.read()
except FileNotFoundError:
pass
# Check if the job is known and started. In this case, send
# back the right signal (ignoring the duplication or signaling
# the end of the job).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment