Skip to content

Commit

Permalink
Check for right master for worker build_args
Browse files Browse the repository at this point in the history
If no master exists, lavalab-gen.py fail, so found the right master.
  • Loading branch information
montjoie committed Nov 17, 2023
1 parent 535ef3e commit 54e5bd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lavalab-gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,8 @@ def main():
dockcomp["services"]["healthcheck"]["ports"] = ["8080:8080"]
dockcomp["services"]["healthcheck"]["build"] = {}
dockcomp["services"]["healthcheck"]["build"]["context"] = "healthcheck"
if "build_args" in master:
dockcomp["services"]["healthcheck"]["build"]["args"] = master['build_args']
if remote_master in worker and "build_args" in worker[remote_master]:
dockcomp["services"]["healthcheck"]["build"]["args"] = worker[remote_master]['build_args']
shutil.copytree("healthcheck", "output/%s/healthcheck" % host)
if "extra_actions" in worker:
fp = open("%s/scripts/extra_actions" % workerdir, "w")
Expand Down

0 comments on commit 54e5bd9

Please sign in to comment.